diff GeoQuiz/Logic/StoreKitController.swift @ 21:b145c408f791

refactor code
author Dennis C. M. <dennis@denniscm.com>
date Tue, 25 Oct 2022 15:30:01 +0200
parents f140bb277c96
children
line wrap: on
line diff
--- a/GeoQuiz/Logic/StoreKitController.swift	Sun Oct 23 11:48:39 2022 +0100
+++ b/GeoQuiz/Logic/StoreKitController.swift	Tue Oct 25 15:30:01 2022 +0200
@@ -26,9 +26,13 @@
     @Published var premiumIsActive = false
     
     init() {
+        #if DEBUG
+        premiumIsActive = true
+        #else
         Purchases.shared.getCustomerInfo { (customerInfo, error) in
             self.customerInfo = customerInfo
         }
+        #endif
     }
     
     func buy(_ package: Package) {