diff options
author | Shav Kinderlehrer <[email protected]> | 2023-12-22 17:14:21 -0500 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2023-12-22 17:14:21 -0500 |
commit | 5b78933de774fcf9291ba40e74dd928925699b0c (patch) | |
tree | ea256f35be0d2ef158306cd9a5dad1c72b4d6efd /Jel/Views/Dashboard/DashboardView.swift | |
parent | 62a8e5704edb604d41af34df7607adf6492ca855 (diff) | |
download | jel-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.swift | 37 |
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() +} |