Post

Replies

Boosts

Views

Activity

Comment on Weird issue with SwiftData saving models correctly, but causing a crash when trying to access data prior to the saving
It's such a weird issue. I would think if you can't access the object prior to inserting it, then it would also crash when you insert it. I ended up inserting the Request into the context, and then filtering after, but it won't update the view properly. I have to close and reopen the app. Even if I attach an ID to the view and change it, so it forces the view to redraw, it still doesn't update the view properly.
Topic: App & System Services SubTopic: General Tags:
Oct ’23
Comment on Weird issue with SwiftData saving models correctly, but causing a crash when trying to access data prior to the saving
It's such a weird issue. I would think if you can't access the object prior to inserting it, then it would also crash when you insert it. I ended up inserting the Request into the context, and then filtering after, but it won't update the view properly. I have to close and reopen the app. Even if I attach an ID to the view and change it, so it forces the view to redraw, it still doesn't update the view properly.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’23