summaryrefslogtreecommitdiff
path: root/Jel/Views
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-12-12 17:12:58 -0500
committerShav Kinderlehrer <[email protected]>2023-12-12 17:12:58 -0500
commit9ccd37f754db33a190a9867bd5a310dfe5f4d17c (patch)
tree6df5dd28d1ab2b4fd4828dd37e0e06c20e65197d /Jel/Views
parentfbb37567460b689f01eb8a8717b9ac8673652c28 (diff)
downloadjel-9ccd37f754db33a190a9867bd5a310dfe5f4d17c.tar.gz
jel-9ccd37f754db33a190a9867bd5a310dfe5f4d17c.zip
Use System/Info/Public instead of Users/Public to verify server
Diffstat (limited to 'Jel/Views')
-rw-r--r--Jel/Views/ContentView.swift30
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())
+}