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
Jan ’26
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:
Jan ’26
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:
Jan ’26
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
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
Replies
Boosts
Views
Activity
Jan ’26
Reply to Swipe to go back still broken with Zoom navigation transition.
Actually if you look at the DestinationVideo sample project (https://developer.apple.com/documentation/visionos/destination-video) It uses the matchedTransitionSource/navigationTransition zoom APIs. When I tested it building on Xcode 26.2 on an iPhone 15 Pro Max, when swiping back the child view very quickly, the source view will "disappear".
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Unable to load a subscription product in the app
Looks like this was mentioned in another post. Make sure that the product id matches in your Store, and in App Store Connect fill in the metadata including localization, and it has to be “Ready to Submit” status in order to show up in your TestFlight testing.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jan ’26
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:
Replies
Boosts
Views
Activity
Jan ’26
Reply to SubscriptionStoreView(groupID:) bug in TestFlight
Fixed. The issue was there were unfinished transactions, they will block and prevent the user from purchasing the same subscription product.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to In app purchases
Check out StoreKit 2 tutorials by searching online.
Replies
Boosts
Views
Activity
Jan ’26
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:
Replies
Boosts
Views
Activity
Jan ’26
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.
Replies
Boosts
Views
Activity
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.
Replies
Boosts
Views
Activity
Nov ’25
Reply to No simulators on Xcode 26.1
Check your Xcode -> Settings -> Components. iOS should be installed
Replies
Boosts
Views
Activity
Nov ’25
Reply to Unable to download iOS 26.1 Simulator Runtime - Build 23B80 not available
But I noticed it was Build 23B80, it's the older build that had no wallpaper in the Simulator, just black wallpaper. Earlier the failed download message said 23B86.
Replies
Boosts
Views
Activity
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
Replies
Boosts
Views
Activity
Nov ’25
Reply to Using Previews causes a system crash on Xcode 26 Beta 4 and MacOS 26 Beta 4
I am getting frequent crashes in Xcode 16.4 that is running on macOS 26 Beta 4 restarting when Previews are active. It happens especially if you change some code in the swift file. The next thing is it freezes, a magenta screen appears for a while, then macOS restarts.
Replies
Boosts
Views
Activity
Jul ’25
Reply to Xcode 26 Beta 4 crashes on closing of project
The other way was to quit by using Command+Q, then it would crash. On the next launch, the screen appearing that shows New Project or select recent would appear. This would prevent opening the previously open project.
Replies
Boosts
Views
Activity
Jul ’25
Reply to Data Race in Widgets?
If it’s UI facing or some SwiftData related, you need to use with @MainActor. but ideally provide more information.
Replies
Boosts
Views
Activity
Jun ’25