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

# windowToolbarLabelStyle(_:)

Sets the label style of items in a toolbar and enables user customization.

## Declaration

```swift
nonisolated func windowToolbarLabelStyle(_ toolbarLabelStyle: Binding<ToolbarLabelStyle>) -> some Scene

```

## Parameters

- `toolbarLabelStyle`: The label style to apply.

## Discussion

Discussion Use this modifier to bind a ToolbarLabelStyle to AppStorage. The toolbar will default to the label style specified but will also be user configurable.     @main     struct MyApp: App {         @AppStorage("ToolbarLabelStyle")         private var labelStyle: ToolbarLabelStyle = .iconOnly

var body: some Scene {             WindowGroup {                 ContentView()                     .toolbar(id: "browserToolbar") {                         ...                     }             }             .windowToolbarLabelStyle($labelStyle)         }     }

## See Also

### Styling the associated toolbar

- [windowToolbarStyle(_:)](swiftui/scene/windowtoolbarstyle(_:).md)
- [windowToolbarLabelStyle(fixed:)](swiftui/scene/windowtoolbarlabelstyle(fixed:).md)
- [WindowToolbarStyle](swiftui/windowtoolbarstyle.md)
