Post

Replies

Boosts

Views

Activity

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
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.
Jan ’26
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:
Replies
Boosts
Views
Activity
Jan ’26
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.
Replies
Boosts
Views
Activity
Jan ’26
Reply to Transaction.currentEntitlements sometimes does not emit a result until device is reboot
Same issue here. Entitlements are simply not updated after an in-app purchase on iOS and macOS 26.4. You are not able to properly develop StoreKit purchases! Sometimes they take a while, sometimes they don't it is extremely buggy, broken and unreliable.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
3w