Created
February 6, 2020 20:28
-
-
Save giovani-pereira-ifood/55da859658cf2b3d806c748143dc0899 to your computer and use it in GitHub Desktop.
openInstagramDeepLink.swift
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
let deeplink = URL(string: "instagram-stories://share")! | |
let canOpen = UIApplication.shared.canOpenURL(deeplink) | |
if canOpen { | |
UIApplication.open(deeplink, options: [:]) | |
} else { | |
// Handle error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment