Browse Source

Hotfix for mac catalyst

nickthedude 6 years ago
parent
commit
97e92cc895
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SwiftyStoreKit/PaymentQueueController.swift

+ 1 - 1
SwiftyStoreKit/PaymentQueueController.swift

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