diff options
author | Shav Kinderlehrer <[email protected]> | 2023-12-12 01:22:43 -0500 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2023-12-12 01:26:00 -0500 |
commit | 5ed7d2551ccaefc19d9e0b934ef17583dca202b2 (patch) | |
tree | 1c7853d57b0366f33356506c01b89d5955047c06 /Jel/JelApp.swift | |
parent | 8a2b75dbfa85b89964848d4d2673e35cc6eed078 (diff) | |
download | jel-5ed7d2551ccaefc19d9e0b934ef17583dca202b2.tar.gz jel-5ed7d2551ccaefc19d9e0b934ef17583dca202b2.zip |
Add server page
Diffstat (limited to 'Jel/JelApp.swift')
-rw-r--r-- | Jel/JelApp.swift | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Jel/JelApp.swift b/Jel/JelApp.swift index ddff76b..d70e444 100644 --- a/Jel/JelApp.swift +++ b/Jel/JelApp.swift @@ -9,9 +9,16 @@ import SwiftUI @main struct JelApp: App { - var body: some Scene { - WindowGroup { - ContentView() + let datamodelController = DatamodelController.shared + let authStateController = AuthStateController() + var body: some Scene { + WindowGroup { + ContentView(authState: authStateController) + .environment(\.managedObjectContext, + datamodelController.container.viewContext) + .task { + authStateController.load() } } + } } |