summaryrefslogtreecommitdiff
path: root/Jel/Views/Dashboard/DashboardView.swift
blob: 26581801782434a304aba1fc96809ed9e4f5bbec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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()
}