Present purchase as full screen

This commit is contained in:
Davide De Rosa 2019-10-30 13:58:30 +01:00
parent 1e6c5ba91b
commit b77f677671
2 changed files with 4 additions and 5 deletions

View File

@ -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)
}
}

View File

@ -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