Solved

How to check the period of purchasablePackage?

  • 2 August 2021
  • 1 reply
  • 16 views

Badge +1

Hi!

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

My Code:

1:

    @Published var PurchaseablePackages: [Purchases.Package] = []


2:

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

                    }

 

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

 

Thanks

Walter

 

icon

Best answer by Walter 2 August 2021, 09:38

View original

1 reply

Badge +1

Got it by myself.

Thanks

 

PurchaseablePackages[index].packageType == .monthly

Reply