<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSToolbarItem/Identifier/toggleSidebar",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSToolbarToggleSidebarItemIdentifier"
  },
  "title" : "toggleSidebar"
}
-->

# toggleSidebar

The identifier for a toolbar item that displays a sidebar.

```
static let toggleSidebar: NSToolbarItem.Identifier
```

## Discussion

When selected, this item sends a `toggleSidebar:` message to the first responder.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)