Post

Replies

Boosts

Views

Activity

Reply to How to subclass with SwiftData?
My workaround was to change the super class into a protocol. This doesn't help avoiding redundant code in the subclasses, but it will enable you to use the Protocol in a similar way you might use a Super class in your code while still being able to take advantage of SwiftData. This is not idea and hopefully will get fixed by Apple.
Oct ’23