Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- }
- }
Add Comment
Please, Sign In to add comment