Just a small side note: SwiftData doesn't use class inheritance (IIRC it doesn't even support it for subentities). The SwiftData PersistentModel
is an AnyObject
protocol, not a base class, in the context of the original question (and the ModelContext
has quite a few [any PersistentModel]
's).
1 Like