diff options
| author | Dustin Mierau <dustin@mierau.me> | 2023-11-28 20:09:05 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2023-11-28 20:09:05 -0800 |
| commit | 2bdcc0c3d751d7c7626d8b0e9f79331b803c668b (patch) | |
| tree | 39a8253a6f5acb50b2336ad08a8ea71c1cae79b7 /Hotline/HotlineApp.swift | |
| parent | de5ee043826bce23906bfcb351a2702e1aa88270 (diff) | |
Bunch of work. Starting HotlineClient and Tracker is working.
Diffstat (limited to 'Hotline/HotlineApp.swift')
| -rw-r--r-- | Hotline/HotlineApp.swift | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Hotline/HotlineApp.swift b/Hotline/HotlineApp.swift index f351e67..da49fd0 100644 --- a/Hotline/HotlineApp.swift +++ b/Hotline/HotlineApp.swift @@ -3,23 +3,23 @@ import SwiftData @main struct HotlineApp: 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 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 { TrackerView() } - .modelContainer(sharedModelContainer) +// .modelContainer(sharedModelContainer) } } |