Present purchase as full screen
This commit is contained in:
parent
1e6c5ba91b
commit
b77f677671
|
@ -67,6 +67,10 @@ extension UIViewController {
|
|||
let nav = StoryboardScene.Purchase.initialScene.instantiate()
|
||||
let vc = nav.topViewController as? PurchaseViewController
|
||||
vc?.feature = product
|
||||
|
||||
// enforce pre iOS 13 behavior
|
||||
nav.modalPresentationStyle = .fullScreen
|
||||
|
||||
present(nav, animated: true, completion: nil)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,11 +71,6 @@ class PurchaseViewController: UITableViewController, StrongTableHost {
|
|||
}
|
||||
|
||||
title = L10n.App.Purchase.title
|
||||
|
||||
// enforce pre iOS 13 behavior
|
||||
if #available(iOS 13, *) {
|
||||
isModalInPresentation = true
|
||||
}
|
||||
navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .stop, target: self, action: #selector(close))
|
||||
|
||||
isLoading = true
|
||||
|
|
Loading…
Reference in New Issue