Post

Replies

Boosts

Views

Activity

Comment on Thread 1: Fatal error: expected attribute to be Codable
I was having this problem / crash when I modified ANY part of a model object - Ints, Strings, Dates, not just custom types. What's really bizarre is that this behavior was only happening on macOS apps, not iOS. The fix for me was also removing additional params (isAutoSaveEnabled: true, isUndoEnable: true) from the modelContainer modifier. Of course now I can't set the behavior I want, because the only way you can set isAutoSaveEnabled is through this constructor...
Jan ’24