Post

Replies

Boosts

Views

Activity

Reply to SwiftData on iOS 18 extreme memory use
@jhokit thank you for this sample project, it was extremely helpful. I worked around SwiftData's Query memory issue using this workaround: https://gist.github.com/juanarzola/dca3c96f1122cb9710e443e40d75b01b The problem is not just when counting, any query will load all the objects. It's a terrible regression, I don't know why it won't get fixed. it's not perfect and just wrote it so it might not have the best naming. Thankfully "willSave" now works so we can write code like this.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’24
Reply to SwiftData/ModelCoders.swift:1762: Fatal error: Passed nil for a non-optional keypath
I filed feedback for either this or a similar issue FB15170769 - I reproduced the same Fatal Error but there's no save needed, it happens when a FetchedResultCollection is passed to a SwiftUI List()
Replies
Boosts
Views
Activity
Sep ’24
Reply to SwiftData on iOS 18 extreme memory use
@jhokit thank you for this sample project, it was extremely helpful. I worked around SwiftData's Query memory issue using this workaround: https://gist.github.com/juanarzola/dca3c96f1122cb9710e443e40d75b01b The problem is not just when counting, any query will load all the objects. It's a terrible regression, I don't know why it won't get fixed. it's not perfect and just wrote it so it might not have the best naming. Thankfully "willSave" now works so we can write code like this.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24