jel/Jel/Views/Dashboard/DashboardView.swift

47 lines
911 B
Swift
Raw Permalink Normal View History

2023-12-15 15:41:00 +00:00
//
// DashboardView.swift
2023-12-15 15:41:00 +00:00
// Jel
//
// Created by zerocool on 12/12/23.
//
import SwiftUI
import JellyfinKit
2023-12-15 15:41:00 +00:00
struct DashboardView: View {
2023-12-15 15:41:00 +00:00
@State var showingSettingsSheet: Bool = false
2023-12-15 15:41:00 +00:00
var body: some View {
ScrollView {
LazyVStack {
Section {
NavigationStack {
DashboardLibraryView()
}
} header: {
DashboardSectionTitleView("Libraries")
.padding([.top, .leading])
}
2023-12-15 15:41:00 +00:00
}
.navigationTitle("Home")
.toolbar {
ToolbarItem(placement: .topBarTrailing) {
Button {
showingSettingsSheet.toggle()
} label: {
Label("Settings", systemImage: "gear")
}
2023-12-15 15:41:00 +00:00
}
}
.sheet(isPresented: $showingSettingsSheet) {
SettingsView(showingSettingsView: $showingSettingsSheet)
}
}
2023-12-15 15:41:00 +00:00
}
}
2023-12-23 05:53:44 +00:00
//#Preview {
// DashboardView()
//}