diff options
Diffstat (limited to 'Hotline/HotlineApp.swift')
| -rw-r--r-- | Hotline/HotlineApp.swift | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/Hotline/HotlineApp.swift b/Hotline/HotlineApp.swift index e6c3ddc..61f44bb 100644 --- a/Hotline/HotlineApp.swift +++ b/Hotline/HotlineApp.swift @@ -3,33 +3,15 @@ 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)") -// } -// }() - @State private var appState = HotlineState() - @State private var hotline = HotlineClient() - private var model = Hotline(trackerClient: HotlineTrackerClient(), client: HotlineNewClient()) + private var model = Hotline(trackerClient: HotlineTrackerClient(), client: HotlineClient()) var body: some Scene { - WindowGroup { TrackerView() .environment(appState) - .environment(hotline) -// .environment(tracker) .environment(model) } -// .modelContainer(sharedModelContainer) } } |