Post

Replies

Boosts

Views

Activity

Reply to StoreKit Config file Options Grayed Out
Having the same issue, reported via Feedback. After adding manually the errors JSON array. I am unsure if it behaving correctly. When I enable an error for "Load Products" I still get a .success result but with zero products if I use the .storeProductsTask view modifier. Fetching a single product with .storeProductTask produces .unavailable I was expecting a .failure on both instead. And calling try Product.products(for:) does not throw. I was expecting it to, given that it throws StoreKitError and its enum cases match the errors from the dropdown.
3w
Reply to Infinite loop getting "_dismiss changed"
I have managed to reproduce unwanted _dismiss changed behavior in the strangest way possible. If you add ANY StoreKit code then on swiping up (i.e. exiting the app) and returning it will produce a bunch of changes. In my app, this was an extremely disruptive bug as it would cause my WebView to reset, losing all state. Here's the code: import SwiftUI import StoreKit struct ContentView: View { @Environment(\.dismiss) private var dismiss var body: some View { let _ = Self._printChanges() VStack { Image(systemName: "globe") .imageScale(.large) .foregroundStyle(.tint) Text("Hello, world!") // Any StoreKit code causes `_dismiss changed.`. Comment the line below and it no longer happens ProductView(id: "testing") } .padding() // Adding a View Modifier like .storeProductTask or .currentEntitlementTask also produces the issue } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’26