Created
May 28, 2018 08:31
-
-
Save WildStudio/cf4b62ad42365ee4aa918298615e34d5 to your computer and use it in GitHub Desktop.
This file contains 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
struct LaunchOptionsHandler { | |
static func handle(launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> NSUserActivity? { | |
if let activityType = launchOptions?[.userActivityType] as? String { | |
if activityType == NSUserActivityTypeBrowsingWeb { | |
return NSUserActivity(activityType: NSUserActivityTypeBrowsingWeb) | |
} | |
} | |
return nil | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment