Running into a weird issue with #swiftdata I have two Schemas. Both schemas have a model named Item with slightly different properties.

SchemaA.Item and SchemaB.Item.

Attempting to save SchemaA.Item fails because it doesn't have a property defined on SchemaB.Item.

Each schema is only loaded and accessed from a ModelContainer that has no knowledge of the other schema.

both localStore() and remoteStore() return an in-memory ModelContainer with only LocalSchema or RemoteSchema loaded.

apparently it's a known issue and under investigation. For now, I'm going to namespace the model and move on.

https://developer.apple.com/forums/thread/820022

#swiftdata

SwiftData ModelContext Pollution w… | Apple Developer Forums