diff options
| author | Dustin Mierau <dustin@mierau.me> | 2023-12-12 12:58:38 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2023-12-12 12:58:38 -0800 |
| commit | f71c4cae3b21db506573bcdfa9fdb6cde41cc0ca (patch) | |
| tree | fb26e9ef242ef390d444264698758b635c77d01c /Hotline/HotlineApp.swift | |
| parent | 18c4b8643df09be4ce52a4b110ea21ac1ad053fc (diff) | |
Moved to new client/model separation so client can be used in other projects. Some UI tweaks.
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) } } |