diff options
author | Shav Kinderlehrer <[email protected]> | 2023-12-12 17:12:58 -0500 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2023-12-12 17:12:58 -0500 |
commit | 9ccd37f754db33a190a9867bd5a310dfe5f4d17c (patch) | |
tree | 6df5dd28d1ab2b4fd4828dd37e0e06c20e65197d /Jel/Views/ContentView.swift | |
parent | fbb37567460b689f01eb8a8717b9ac8673652c28 (diff) | |
download | jel-9ccd37f754db33a190a9867bd5a310dfe5f4d17c.tar.gz jel-9ccd37f754db33a190a9867bd5a310dfe5f4d17c.zip |
Use System/Info/Public instead of Users/Public to verify server
Diffstat (limited to 'Jel/Views/ContentView.swift')
-rw-r--r-- | Jel/Views/ContentView.swift | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Jel/Views/ContentView.swift b/Jel/Views/ContentView.swift new file mode 100644 index 0000000..356615d --- /dev/null +++ b/Jel/Views/ContentView.swift @@ -0,0 +1,30 @@ +// +// 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()) +} |