summaryrefslogtreecommitdiff
path: root/Jel/Views/Dashboard/DashboardView.swift
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-12-22 17:14:21 -0500
committerShav Kinderlehrer <[email protected]>2023-12-22 17:14:21 -0500
commit5b78933de774fcf9291ba40e74dd928925699b0c (patch)
treeea256f35be0d2ef158306cd9a5dad1c72b4d6efd /Jel/Views/Dashboard/DashboardView.swift
parent62a8e5704edb604d41af34df7607adf6492ca855 (diff)
downloadjel-5b78933de774fcf9291ba40e74dd928925699b0c.tar.gz
jel-5b78933de774fcf9291ba40e74dd928925699b0c.zip
Start implementing dashboard view + async image loader
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()
+}