Post

Replies

Boosts

Views

Activity

Reply to XCode Beta 7 - Cannot convert value of type 'ModelConfiguration' to expected argument type 'any PersistentModel.Type'
The signatures for the ModelContainer convenience initializers have changed to take the configuration as a named parameter. This should do the trick: struct AppleClosetApp: App { let config = ModelConfiguration(url: AppGroup.facts.containerURL ?? URL(fileURLWithPath: "")) var body: some Scene { WindowGroup { ClosetNavigationView() .modelContainer(try! ModelContainer(for: Closet.self, configurations: config)) } } }
Aug ’23