summaryrefslogtreecommitdiff
path: root/Jel/Views/Dashboard
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2024-02-21 14:45:48 -0500
committerShav Kinderlehrer <[email protected]>2024-02-21 14:45:48 -0500
commit2619848a70d1c1cf366a288dcb889103b7464f1c (patch)
tree9dc2664015f0038d8358f5b2f26dbdd3a828e7ca /Jel/Views/Dashboard
parented056435427f8a3699f55ca77adcad6dd3c2f246 (diff)
downloadjel-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.swift28
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
- })
}
}