summaryrefslogtreecommitdiff
path: root/Jel/Views/Dashboard/DashboardView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Jel/Views/Dashboard/DashboardView.swift')
-rw-r--r--Jel/Views/Dashboard/DashboardView.swift37
1 files changed, 37 insertions, 0 deletions
diff --git a/Jel/Views/Dashboard/DashboardView.swift b/Jel/Views/Dashboard/DashboardView.swift
new file mode 100644
index 0000000..2658180
--- /dev/null
+++ b/Jel/Views/Dashboard/DashboardView.swift
@@ -0,0 +1,37 @@
+//
+// DashboardView.swift
+// Jel
+//
+// Created by zerocool on 12/12/23.
+//
+
+import SwiftUI
+import JellyfinKit
+
+struct DashboardView: View {
+ @State var showingSettingsSheet: Bool = false
+
+ var body: some View {
+ NavigationStack {
+ VStack {
+ LibraryView()
+ }
+ .toolbar {
+ ToolbarItem {
+ Button {
+ showingSettingsSheet.toggle()
+ } label: {
+ Label("Settings", systemImage: "gear")
+ }
+ }
+ }
+ .sheet(isPresented: $showingSettingsSheet) {
+ SettingsView(showingSettingsView: $showingSettingsSheet)
+ }
+ }
+ }
+}
+
+#Preview {
+ DashboardView()
+}