diff options
Diffstat (limited to 'Jel/ContentView.swift')
-rw-r--r-- | Jel/ContentView.swift | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Jel/ContentView.swift b/Jel/ContentView.swift deleted file mode 100644 index 356615d..0000000 --- a/Jel/ContentView.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// ContentView.swift -// Jel -// -// Created by zerocool on 12/11/23. -// - -import SwiftUI - -struct ContentView: View { - @ObservedObject var authState: AuthStateController - var body: some View { - VStack { - if !authState.loggedIn { - SignInView(authState: authState) - } else { - Text("Logged in") - Button("Log out") { - authState.loggedIn = false - authState.save() - } - } - } - .padding() - } -} - -#Preview { - ContentView(authState: AuthStateController()) -} |