Last active
September 26, 2018 09:56
-
-
Save darthpelo/2132b88fc35d28f30d7ad20e0d5c0858 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class HistoryViewController: BaseViewController { | |
override func viewDidAppear(_ animated: Bool) { | |
super.viewDidAppear(animated) | |
if let information = presenter?.information { | |
activitySetup(information) | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIViewController { | |
func activitySetup(_ information: SiriService.ActivityInformation) { | |
// make this activity active for the current view controller – | |
// this is what Siri will restore when the activity is triggered | |
self.userActivity = SiriService.activitySetup(information) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment