Skip to main content
Solved

How to check the period of purchasablePackage?

  • 2 August 2021
  • 1 reply
  • 25 views

Hi!

Has anyone a code snipplet for SwiftUI receiving the period of a purchasable Package?

My Code:

1:

    @Published var PurchaseablePackages: sPurchases.Package] = ]


2:

                    ForEach(PurchaseablePackages.indices, id:\.self) { index in
                                makePurchase(ProductID: PurchaseablePackagesindex].product.productIdentifier)
                            }, label: {
                                Text("\(PurchaseablePackagesindex].product.localizedTitle) for
                                         \(PurchaseablePackagesaindex].localizedPriceString) “)
                            }

                    }

 

How can i add “per month” or “once in a LifeTime”?

 

Thanks

Walter

 

Got it by myself.

Thanks

 

PurchaseablePackagessindex].packageType == .monthly


Reply