I rewrote my code using a different API. That seemed to have done the trick:
.onAppear {
Task {
do {
let loadedProducts = try await Product.products(for: productIDs)
products = loadedProducts.sorted { $0.price < $1.price }
} catch {
purchaseMessage = NSLocalizedString("Failed to load products.", comment: "")
}
isLoading = false
}
}
Topic:
App & System Services
SubTopic:
StoreKit
Tags: