Created
February 27, 2018 19:24
-
-
Save DejanEnspyra/440e79da83906598ef2546ba88877c6d to your computer and use it in GitHub Desktop.
Restore Activity
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
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Void) -> Bool { | |
let vc = (window?.rootViewController as! UINavigationController).viewControllers[0] | |
vc.restoreUserActivityState(userActivity) | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment