Post

Replies

Boosts

Views

Activity

Comment on SwiftData context disregards unique attribute
Yes, this resolves app behavior, and is what changed between iOS 17.5 and iOS 18 beta. I need to call context save for every change now, instead of relying on autosaveEnabled: When true, the context calls save() after you make changes to any inserted or registered models. The context also calls save() at various times during the lifecycle of windows, scenes, views, and sheets.
Jun ’24