Skip to content

Instantly share code, notes, and snippets.

@grago
Last active May 7, 2020 05:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grago/dee773f9c5fdb6d857ebd531708c101d to your computer and use it in GitHub Desktop.
Save grago/dee773f9c5fdb6d857ebd531708c101d to your computer and use it in GitHub Desktop.
[Link to subscription and app settings] #ios
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