From f71c4cae3b21db506573bcdfa9fdb6cde41cc0ca Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Tue, 12 Dec 2023 12:58:38 -0800 Subject: Moved to new client/model separation so client can be used in other projects. Some UI tweaks. --- Hotline/HotlineApp.swift | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'Hotline/HotlineApp.swift') 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) } } -- cgit