Drop single feature purchase

This commit is contained in:
Davide De Rosa 2021-02-07 11:50:48 +01:00
parent 47da4ba5af
commit 0c7b88f2c5
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ extension UIViewController {
func presentPurchaseScreen(forProduct product: Product, delegate: PurchaseViewControllerDelegate? = nil) { func presentPurchaseScreen(forProduct product: Product, delegate: PurchaseViewControllerDelegate? = nil) {
let nav = StoryboardScene.Purchase.initialScene.instantiate() let nav = StoryboardScene.Purchase.initialScene.instantiate()
let vc = nav.topViewController as? PurchaseViewController let vc = nav.topViewController as? PurchaseViewController
vc?.feature = product // vc?.feature = product
vc?.delegate = delegate vc?.delegate = delegate
// enforce pre iOS 13 behavior // enforce pre iOS 13 behavior

View File

@ -93,7 +93,7 @@ extension NSAlert {
extension NSViewController { extension NSViewController {
func presentPurchaseScreen(forProduct product: Product, delegate: PurchaseViewControllerDelegate? = nil) { func presentPurchaseScreen(forProduct product: Product, delegate: PurchaseViewControllerDelegate? = nil) {
let vc = StoryboardScene.Purchase.initialScene.instantiate() let vc = StoryboardScene.Purchase.initialScene.instantiate()
vc.feature = product // vc.feature = product
vc.delegate = delegate vc.delegate = delegate
presentAsModalWindow(vc) presentAsModalWindow(vc)
} }