Drop single feature purchase
This commit is contained in:
parent
47da4ba5af
commit
0c7b88f2c5
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue