Created
May 28, 2018 08:23
-
-
Save WildStudio/cd286ac29ee43cfe7cadf0a7959e0086 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
// We stored so we can later do whatever me need with them. | |
func storeDynamicLink(_ dynamicLink: DynamicLink) { | |
guard let url = dynamicLink.url else { return } | |
guard let urlString = url.valueOf( | |
queryParamaterName: "url") else { return } | |
var data: [String:Any] = [:] | |
data["firebase.deeplink.url"] = urlString | |
UserDefaults.standard.set(data, forKey: Params.storageKey.rawValue) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment