Post

Replies

Boosts

Views

Activity

Reply to Using Observations with SwiftData @Model
I am working on the "real" project. The changes to the list of @Model are still not being captured in the Observations. When I modify or add/remove from the list sometimes a property of the object that IS NOT changed shows as being changed. That property has exactly one setter call and is not linked to the edit, add, or remove code. When I tried to observe the list as a whole, I "achieved" a FATAL ERROR for illegal attempt to resolve a future for a relationship that doesn't have a cached value!
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’26
Reply to Using Observations with SwiftData @Model
The demo of course is not repeating the problem - I am going to sift through the stacktrace to see when these values are being set because arrrg https://github.com/chenrichsen/SwiftDataObservations
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Using Observations with SwiftData @Model
I am working on the "real" project. The changes to the list of @Model are still not being captured in the Observations. When I modify or add/remove from the list sometimes a property of the object that IS NOT changed shows as being changed. That property has exactly one setter call and is not linked to the edit, add, or remove code. When I tried to observe the list as a whole, I "achieved" a FATAL ERROR for illegal attempt to resolve a future for a relationship that doesn't have a cached value!
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Using Observations with SwiftData @Model
Ziqiao (et al), if you can provide any ideas greatly will appreciated
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’26