diff --git a/Shared/Navigation/SidebarView.swift b/Shared/Navigation/SidebarView.swift index 41d67d7..0bca00e 100644 --- a/Shared/Navigation/SidebarView.swift +++ b/Shared/Navigation/SidebarView.swift @@ -1,13 +1,35 @@ import SwiftUI struct SidebarView: View { + @State var isPresentingSettings = false + var body: some View { + #if os(iOS) + VStack { + CollectionListView() + Spacer() + Button(action: { + isPresentingSettings = true + }, label: { + Text("Settings") + }).sheet( + isPresented: $isPresentingSettings, + onDismiss: { + isPresentingSettings = false + }, + content: { + SettingsView() + } + ) + } + #else CollectionListView() + #endif } } struct SidebarView_Previews: PreviewProvider { static var previews: some View { SidebarView() } }