Created
September 29, 2018 19:38
-
-
Save vialyx/491564ddb89bdbd5afee34d33e37e34c 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
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { | |
if let shortcut = Shortcuts(rawValue: userActivity.activityType) { | |
NotificationCenter.default.post(name: shortcut.notification, object: userActivity) | |
} | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment