Hi,
is there any description/documentation about what can not be used as SwiftData attributes?
I do not mean things which cause issues at compile time, like having a type which is not Codeable
. But rather I am looking for info which things to avoid, if you do not want to run into application crashes in modelContext.save()
. Like for example having an enum
which as an optional associated value as an attribute type (crashes on save is the associated value is nil
).
Anybody seen any documentation about that? Or tech notes?
Thanks in advance for any hints :-).
Cheers, Michael