Yes I've tried that. Same issue. I tried again today as well.
Post
Replies
Boosts
Views
Activity
I'm not sure setting an ID would work in this case since it just can't seem to decode Credit to credit, but another user also suggested a migration plan. I'll look into that. Thanks.
Thank you for your reply. I'll look into those.
Thanks for your reply. That's a good way to do it.
Thanks. Yea I don't have it there at the moment, but it doesn't see to make much of a difference anyways. Either way, I figured out how to do what I wanted to do. I'm going to post the code for it.
That did it. I figured if I didn't want to select multiple, I could just use the UUID without using the set. I did have to adjust other parts of my code to get the navigationDestination to work though. I'll post that code as a comment.
I ended up reverting back to MacOS 15 to use the stable release of Xcode.
Was able to confirm that there is no lag with 17.6.1 as well.
@Claude31
The purpose is to give the view a separate model to edit so no changes are made to the original until the user presses a "done" button. At that point, the original is updated and the context is saved. I used to do it differently, however, SwiftData doesn't always behave how you expect it to and I remember having some issues.
Yes, mileageHistory is an array of Mileage. I'll update the post to have more information on the Vehicle structure.