Post

Replies

Boosts

Views

Activity

Reply to SwiftUI view state resetting after alert is shown
I tested the sample code, even using a random color to debug the view to check if it is being recreated, it looks like VStack in List = unstable identity when presentation state changes. I applied .border() modifier with the random color, to track if a view is recreated. Only when the presentation state changes, then the count is reset. Color( red: .random(in: 0...1), green: .random(in: 0...1), blue: .random(in: 0...1) ) Separate the buttons to test, and when the isPresented flag changes after the alert, the LibraryView in the VStack causes issues. private struct ViewWithAlert: View { @State private var isPresented: Bool = false @State private var presentedCount = 0 var body: some View { VStack { // Test without alert - just increment the counter Button { // isPresented = true // Comment out alert presentedCount += 1 } label: { Text("Increment count: \(presentedCount)") .border(Color.random) } // Separate button to show alert // -> When tapped, presentedCount resets to 0 on tap OK Button("Show Alert") { isPresented = true } } .alert("Hello", isPresented: self.$isPresented) { Button("OK") { } } } }
Topic: UI Frameworks SubTopic: SwiftUI
1w
Reply to HELP WITH SUBSCRIPTIONS
If you are using SubscriptionStoreView with groupID overload, make sure the groupID entered is matching with the one in App Store Connect, not the one from your Xcode StoreKit configuration file. In Xcode testing, you need a StoreKit config file, and make sure to select Edit Scheme -> Options tab and select StoreKit Configuration to the correct configuration file. But this does not affect your App Store version. You might need to handle unfinished transactions. Take a look at sample code from WWDC25 on StoreKit 2.
Topic: App & System Services SubTopic: StoreKit Tags:
2w
Reply to how to handle verification step for in-app purchase?
Looks like it is going to the pending case. But then you didn't anything else besides showing the message. You need to have a listener task to listen for Transaction.updates. for await result in Transaction.updates { // Verify the result, update your customer product status // finish the transaction } Also a task that checks Transaction.unfinished, there might be unfinished transactions.
Topic: App & System Services SubTopic: StoreKit Tags:
2w
Reply to In-App Purchases rejected + Reviewer cannot complete purchase
Create a Sandbox account in the Users & Access of App Store Connect. Select Sandbox, then create a Test Account. Use another email, enter the details accordingly. Then open the email, verify it. On your main device, Settings -> Your Name at the top, Media & Purchases -> Sign out. Go back to Settings, at the bottom Developer. Then scroll down to Sandbox Apple Account, sign in to the Sandbox test account. You can manage the In App Purchases settings there, like how long is one month. Back to your app that you are testing in TestFlight, test your purchase flow in there. Verify that it works, your subscription/IAP content can be displayed.
Dec ’25
Reply to Guideline 3.1.2 - Business - Payments - Subscriptions
For 3.1.2 Issue Description, you need to include a Terms of Use for apps with Auto Renewable Subscriptions. Either provide your own or you can use the standard Apple Terms of Use EULA. Make sure to put the http link in your description in App Store Connect. As for Resources, make sure your Store Sheet has the mentioned required fields. Also provide a Link in your App binary to the privacy policy and terms of use.
Nov ’25
Reply to Unable to download iOS 26.1 Simulator Runtime - Build 23B80 not available
I have the same issue on both my Macs, unable to download Build 23B86. Looks the build number has been bumped up. Update: For now the only way is to download from terminal using Xcode command line tools xcodebuild -downloadPlatform iOS -exportPath ~/Downloads Then install it using terminal, the guide is at: https://developer.apple.com/documentation/xcode/downloading-and-installing-additional-xcode-components#Download-Xcode-components-from-the-command-line
Nov ’25