diff --git a/Shared/Navigation/AppSidebarNavigation.swift b/Shared/Navigation/AppSidebarNavigation.swift index 67888d21..034b0ad9 100644 --- a/Shared/Navigation/AppSidebarNavigation.swift +++ b/Shared/Navigation/AppSidebarNavigation.swift @@ -100,6 +100,16 @@ struct AppSidebarNavigation: View { "Current User: \(accounts.current?.description ?? "Not set")" ) } + + #if os(macOS) + ToolbarItem(placement: .navigation) { + Button { + NSApp.keyWindow?.firstResponder?.tryToPerform(#selector(NSSplitViewController.toggleSidebar(_:)), with: nil) + } label: { + Label("Toggle Sidebar", systemImage: "sidebar.left") + } + } + #endif } }