jel/Jel/Views/Dashboard/DashboardView.swift

39 lines
709 B
Swift
Raw 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
var body: some View {
VStack {
NavigationStack {
2023-12-23 05:53:44 +00:00
DashboardLibraryView()
.navigationTitle("Home")
2023-12-15 15:41:00 +00:00
}
}
.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()
//}