Guest User

Untitled

a guest
Dec 9th, 2018
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. extension UIApplication {
  2. class func openAppSettings() {
  3. guard let url = URL(string: self.openSettingsURLString) else { return }
  4. self.shared.open(url, options: [:], completionHandler: nil)
  5. }
  6.  
  7. class func openSubscriptionManagement() {
  8. guard let url = URL(string: "itms://apps.apple.com/account/subscriptions") else { return }
  9. self.shared.open(url, options: [:], completionHandler: nil)
  10. }
  11. }
RAW Paste Data