---
title: "windowToolbarStyle(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/scene/windowtoolbarstyle(_:)"
---

# windowToolbarStyle(_:)

Sets the style for the toolbar defined within this scene.

## Declaration

```swift
nonisolated func windowToolbarStyle<S>(_ style: S) -> some Scene where S : WindowToolbarStyle

```

## See Also

### Styling a toolbar

- [toolbarBackground(_:for:)](swiftui/view/toolbarbackground(_:for:).md)
- [toolbarColorScheme(_:for:)](swiftui/view/toolbarcolorscheme(_:for:).md)
- [toolbarForegroundStyle(_:for:)](swiftui/view/toolbarforegroundstyle(_:for:).md)
- [WindowToolbarStyle](swiftui/windowtoolbarstyle.md)
- [toolbarLabelStyle](swiftui/environmentvalues/toolbarlabelstyle.md)
- [ToolbarLabelStyle](swiftui/toolbarlabelstyle.md)
- [SpacerSizing](swiftui/spacersizing.md)
