[App] Repositories in the Menu Bar view #4

Merged
javier merged 12 commits from app/repositories into main 2024-10-06 11:50:37 +00:00
Showing only changes of commit 37da844938 - Show all commits

View File

@ -14,16 +14,14 @@ struct PiperApp: App {
// MARK: Properties
var sharedModelContainer: ModelContainer = {
let schema = Schema([
Item.self,
])
let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false)
private var container = {
do {
return try ModelContainer(for: schema, configurations: [modelConfiguration])
return try ModelContainer(
for: .entities,
configurations: [ModelConfiguration()]
)
} catch {
fatalError("Could not create ModelContainer: \(error)")
fatalError("ERROR: ModelContainer has not been created => \(error)")
}
}()