Skip to content

Instantly share code, notes, and snippets.

@DejanEnspyra
Created February 27, 2018 19:24
Show Gist options
  • Save DejanEnspyra/440e79da83906598ef2546ba88877c6d to your computer and use it in GitHub Desktop.
Save DejanEnspyra/440e79da83906598ef2546ba88877c6d to your computer and use it in GitHub Desktop.
Restore Activity
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