Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.71 KB | None | 0 0
  1. @available(iOS 9.0, *)
  2. func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any]) -> Bool {
  3.   return application(app, open: url,
  4.                      sourceApplication: options[UIApplicationOpenURLOptionsKey.sourceApplication] as? String,
  5.                      annotation: "")
  6. }
  7.  
  8. func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
  9.   if let dynamicLink = DynamicLinks.dynamicLinks().dynamicLink(fromCustomSchemeURL: url) {
  10.     // Handle the deep link. For example, show the deep-linked content or
  11.     // apply a promotional offer to the user's account.
  12.     // ...
  13.     return true
  14.   }
  15.   return false
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement