<!--
{
  "availability" : [
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ToolbarPlacement/windowToolbar",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16ToolbarPlacementV06windowC0ACvpZ"
  },
  "title" : "windowToolbar"
}
-->

# windowToolbar

The placement for the containing window’s toolbar, sometimes referred to
as the titlebar.

```
static var windowToolbar: ToolbarPlacement { get }
```

## Discussion

When hidden using [`toolbarVisibility(_:for:)`](/documentation/SwiftUI/View/toolbarVisibility(_:for:)), this hides the entire
window toolbar, including the title and “traffic light” window controls.
To remove the custom toolbar item content only, use
[`automatic`](/documentation/SwiftUI/ToolbarPlacement/automatic).

Use [`toolbarBackground(_:for:)`](/documentation/SwiftUI/View/toolbarBackground(_:for:)) to hide the background
of the window toolbar.

---

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)