Post

Replies

Boosts

Views

Activity

Reply to Navigation issue in Xcode 16 beta 7
iOS 18 beta 7, Xcode beta 6 (a slip-up) An update: This issue occurs only in Debug mode and seems to be related to environment macros in the view. I had the following line defined: @Environment(\.scenePhase) private var scenePhase However, the variable wasn't even used. After removing that line, the problem disappeared. I tried to create some code to reproduce the issue, but I couldn't get the issue to happen.
Aug ’24
Reply to SwiftData does not persist change on relationship on iOS 18 beta 7
I've created an example app that replicates the issue or my wrong doing. Follow this scenario for iOS17 and then iOS18 in the simulator. Add 3 notes Change review date for the second, and the third note. Switch immediately to Reviews view and remember results. Go back to Notes view Switch to Reviews view again after ~20-25 seconds In iOS17 the view is unchanged. In iOS18 the change is reverted. When you inspect the database with Core Data Lab you can see that the relationship property has been rolled back. Example code can be downloaded from here I do really hope someone else can spot what I am doing wrong.
Aug ’24