Opens Patreon page in-app when AltStore not installed
This commit is contained in:
parent
0c6f28e70a
commit
5337636f43
@ -345,9 +345,11 @@ extension SettingsViewController
|
|||||||
UIApplication.shared.open(patreonURL, options: [:]) { (success) in
|
UIApplication.shared.open(patreonURL, options: [:]) { (success) in
|
||||||
guard !success else { return }
|
guard !success else { return }
|
||||||
|
|
||||||
let alertController = UIAlertController(title: NSLocalizedString("AltStore Not Installed", comment: ""), message: NSLocalizedString("You must have AltStore installed to receive Patreon benefits.", comment: ""), preferredStyle: .alert)
|
let patreonURL = URL(string: "https://www.patreon.com/rileytestut")!
|
||||||
alertController.addAction(.ok)
|
|
||||||
self.present(alertController, animated: true, completion: nil)
|
let safariViewController = SFSafariViewController(url: patreonURL)
|
||||||
|
safariViewController.preferredControlTintColor = .deltaPurple
|
||||||
|
self.present(safariViewController, animated: true, completion: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
tableView.deselectRow(at: indexPath, animated: true)
|
tableView.deselectRow(at: indexPath, animated: true)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user