Last active
May 7, 2020 05:43
-
-
Save grago/dee773f9c5fdb6d857ebd531708c101d to your computer and use it in GitHub Desktop.
[Link to subscription and app settings] #ios
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
extension UIApplication { | |
class func openAppSettings() { | |
guard let url = URL(string: self.openSettingsURLString) else { return } | |
self.shared.open(url, options: [:], completionHandler: nil) | |
} | |
class func openSubscriptionManagement() { | |
guard let url = URL(string: "itms://apps.apple.com/account/subscriptions") else { return } | |
self.shared.open(url, options: [:], completionHandler: nil) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment