Thank you for confirming the change. Is this going to be a documented limitation of SwiftData?
It is useful to be able to express the immutability of particular model attributes. I can understand if SwiftData may now be unable to handle that immutability constraint, but that change seems like it should be a documented property of SwiftData and not just a compiler error.
If it isn't a SwiftData design decision but a limitation of macros I would encourage the restoration of the previously shipping behavior.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: