diff options
Diffstat (limited to 'iGopherBrowser/iGopherBrowserApp.swift')
-rw-r--r-- | iGopherBrowser/iGopherBrowserApp.swift | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/iGopherBrowser/iGopherBrowserApp.swift b/iGopherBrowser/iGopherBrowserApp.swift index 856ff5e..93c3b8a 100644 --- a/iGopherBrowser/iGopherBrowserApp.swift +++ b/iGopherBrowser/iGopherBrowserApp.swift @@ -6,32 +6,17 @@ // import SwiftUI -import SwiftData @main struct iGopherBrowserApp: App { - var sharedModelContainer: ModelContainer = { - let schema = Schema([ - Item.self, - ]) - let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false) - - do { - return try ModelContainer(for: schema, configurations: [modelConfiguration]) - } catch { - fatalError("Could not create ModelContainer: \(error)") - } - }() - - var body: some Scene { - WindowGroup { - ContentView() - } - .modelContainer(sharedModelContainer) - .commands { - #if os(macOS) - SidebarCommands() - #endif - } + var body: some Scene { + WindowGroup { + ContentView() + } + .commands { + #if os(macOS) + SidebarCommands() + #endif } + } } |