---
title: "toggleToolbarShown(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/toggletoolbarshown(_:)"
---

# toggleToolbarShown(_:)

Toggles the visibility of the window’s toolbar.

## Declaration

```swift
func toggleToolbarShown(_ sender: Any?)
```

## Parameters

- `sender`: The message’s sender.

## Discussion

Discussion See the NSToolbar class description for additional information.

## See Also

### Managing Toolbars

- [toolbar](appkit/nswindow/toolbar.md)
- [runToolbarCustomizationPalette(_:)](appkit/nswindow/runtoolbarcustomizationpalette(_:).md)
