Quellcode durchsuchen

Hotfix for mac catalyst

nickthedude vor 6 Jahren
Ursprung
Commit
97e92cc895
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      SwiftyStoreKit/PaymentQueueController.swift

+ 1 - 1
SwiftyStoreKit/PaymentQueueController.swift

@@ -240,7 +240,7 @@ class PaymentQueueController: NSObject, SKPaymentTransactionObserver {
         updatedDownloadsHandler?(downloads)
         updatedDownloadsHandler?(downloads)
     }
     }
 
 
-    #if os(iOS) && !targetEnvironment(UIKitForMac)
+    #if os(iOS) && !targetEnvironment(macCatalyst)
     func paymentQueue(_ queue: SKPaymentQueue, shouldAddStorePayment payment: SKPayment, for product: SKProduct) -> Bool {
     func paymentQueue(_ queue: SKPaymentQueue, shouldAddStorePayment payment: SKPayment, for product: SKProduct) -> Bool {
         
         
         return shouldAddStorePaymentHandler?(payment, product) ?? false
         return shouldAddStorePaymentHandler?(payment, product) ?? false