static func availableOfferingWithIdentifier(_ id: String) -> Offering{
Purchases.shared.getOfferings { offering, error in
if let offerMatchingID = offering!.offering(identifier: id){
return offerMatchingID
}
}
}
Trying to display a Paywall for my offering with an identifier. produces error
why doesn't the closure “offering” realise it’s own type?