When attempting to implement the PaywallView of the example SwiftUI project in my own project targeting iOS 15.0 I am receiving 2 errors.
Referencing initializer 'init(_:content:)' on 'ForEach' requires that 'Purchases.Package' conform to 'Identifiable'
ForEach(offering?.availablePackages ?? []) { package in
PackageCellView(package: package) { (package) in
/// - Set 'isPurchasing' state to `true`
isPurchasing = true
/// - Purchase a package
Purchases.shared.purchase(package: package) { (transaction, info, error, userCancelled) in
/// - Set 'isPurchasing' state to `false`
isPurchasing = false
/// - If the user didn't cancel and there wasn't an error with the purchase, close the paywall
if !userCancelled, error == nil {
isPresented = false
}
}
}
}
Value of type 'Purchases.Package' has no member 'terms'
Text(package.terms(for: package))
Any thoughts on what I am doing wrong to generate these errors?