diff options
author | Shav Kinderlehrer <[email protected]> | 2024-02-21 21:30:59 -0500 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2024-02-21 21:30:59 -0500 |
commit | 1ce620567c64c92872261317863695c4660acbd0 (patch) | |
tree | 212f935b3759b76097bdeb8f27923a7137945b50 /Jel/Views/ContentView.swift | |
parent | 2619848a70d1c1cf366a288dcb889103b7464f1c (diff) | |
download | jel-1ce620567c64c92872261317863695c4660acbd0.tar.gz jel-1ce620567c64c92872261317863695c4660acbd0.zip |
AddServerView autofills with last server
Diffstat (limited to 'Jel/Views/ContentView.swift')
-rw-r--r-- | Jel/Views/ContentView.swift | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/Jel/Views/ContentView.swift b/Jel/Views/ContentView.swift index 3983392..203bbaa 100644 --- a/Jel/Views/ContentView.swift +++ b/Jel/Views/ContentView.swift @@ -13,22 +13,29 @@ struct ContentView: View { @State var isSignedIn: Bool = true var body: some View { - VStack { + VStack() { if isSignedIn { NavigationStack { DashboardView() } } else { - VStack { - Text("You are not currently signed into a Jellyfin instance.") - .padding() - Button { - // toggle logged in so that it invalidates isSignedIn - authState.loggedIn = true - authState.loggedIn = false - } label: { - Text("Sign in") + HStack { + Spacer() + VStack(alignment: .center) { + Spacer() + Text("You are not currently signed into a Jellyfin instance.") + .multilineTextAlignment(.center) + .padding() + Button { + // toggle logged in so that it invalidates isSignedIn + authState.loggedIn = true + authState.loggedIn = false + } label: { + Text("Sign in") + } + Spacer() } + Spacer() } } } |