Created
May 28, 2018 08:22
-
-
Save WildStudio/59818abd889432fcb4c12fbd1525bd6c 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
func handle(customScheme url: URL, completion:DeeplinkHandlerCompletion?) -> Bool { | |
let dynamicLink = DynamicLinks.dynamicLinks()?.dynamicLink(fromCustomSchemeURL: url) | |
guard (dynamicLink?.url) != nil else { | |
completion?(false) | |
return false | |
} | |
self.storeDynamicLink(dynamicLink!) | |
completion?(true) | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment