windowToolbarLabelStyle(fixed:)
Sets the label style of items in a toolbar.
Declaration
nonisolated func windowToolbarLabelStyle(fixed: ToolbarLabelStyle) -> some Scene
Parameters
- fixed:
The toolbar label style to apply.
Discussion
Use this modifier to set a static ToolbarLabelStyle the toolbar should use. The style will not be configurable by the user.
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.toolbar(id: "browserToolbar") {
...
}
}
.windowToolbarLabelStyle(fixed: .iconOnly)
}
}