I notice that once I open a second ModelContainer on same URL as the document that's open in the DocumentGroup, then all saves to the DocumentGroup's model container fail with: Error saving the database Error Domain=NSCocoaErrorDomain Code=134020 The model configuration used to open the store is incompatible with the one that was used to create the store. UserInfo={NSAffectedObjectsErrorKey= (entity: Blah; id: 0x60000026e0c0 ; data: { id = 91E56F61-CFE0-42E4-9EA9-EAD4256B64AB; imageData = nil; name = Untitled Blah; })} I will assume that this is just not a good idea right now, and conclude that Document based SwiftData apps do not work well with multiple scenes.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: