Explorar el Código

Merge pull request #486 from nickthedude/patch-1

Hotfix for mac catalyst
Samuel Spencer hace 5 años
padre
commit
ce63a122c4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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