diff options
author | Shav Kinderlehrer <[email protected]> | 2024-02-21 14:45:48 -0500 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2024-02-21 14:45:48 -0500 |
commit | 2619848a70d1c1cf366a288dcb889103b7464f1c (patch) | |
tree | 9dc2664015f0038d8358f5b2f26dbdd3a828e7ca /Jel/Views/Dashboard | |
parent | ed056435427f8a3699f55ca77adcad6dd3c2f246 (diff) | |
download | jel-2619848a70d1c1cf366a288dcb889103b7464f1c.tar.gz jel-2619848a70d1c1cf366a288dcb889103b7464f1c.zip |
Finish ItemSeriesEpisodeIconView + make geo size globally available
Diffstat (limited to 'Jel/Views/Dashboard')
-rw-r--r-- | Jel/Views/Dashboard/DashboardView.swift | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/Jel/Views/Dashboard/DashboardView.swift b/Jel/Views/Dashboard/DashboardView.swift index 931a884..508d002 100644 --- a/Jel/Views/Dashboard/DashboardView.swift +++ b/Jel/Views/Dashboard/DashboardView.swift @@ -10,8 +10,7 @@ import JellyfinKit struct DashboardView: View { @State var showingSettingsSheet: Bool = false - @ObservedObject var authState: AuthStateController = AuthStateController.shared - @State var refresh: Bool = true + var body: some View { ScrollView { @@ -25,23 +24,20 @@ struct DashboardView: View { .padding([.top, .leading]) } } - } - .navigationTitle("Home") - .toolbar { - ToolbarItem(placement: .topBarTrailing) { - Button { - showingSettingsSheet.toggle() - } label: { - Label("Settings", systemImage: "gear") + .navigationTitle("Home") + .toolbar { + ToolbarItem(placement: .topBarTrailing) { + Button { + showingSettingsSheet.toggle() + } label: { + Label("Settings", systemImage: "gear") + } } } + .sheet(isPresented: $showingSettingsSheet) { + SettingsView(showingSettingsView: $showingSettingsSheet) + } } - .sheet(isPresented: $showingSettingsSheet) { - SettingsView(showingSettingsView: $showingSettingsSheet) - } - .onChange(of: authState.loggedIn, { - refresh = !authState.loggedIn - }) } } |