ToolbarLabelStyle

The label style of a toolbar.

StructureiOS 18.0+macOS 15.0+tvOS 18.0+watchOS 11.0+visionOS 2.0+ToolbarLabelStyle in SwiftUI

Declaration

React
type ToolbarLabelStyle = 'automatic';
Swift
struct ToolbarLabelStyle

Pass a literal, or build one with SwiftUI.ToolbarLabelStyle from import { SwiftUI } from 'swiftui-react-native'.

Type properties

  • 'automatic'SwiftUI.ToolbarLabelStyle.automatic

    The automatic label style. The toolbar will use a labelStyle that best fits the Scene it is applied to.

Overview

Use this type in conjunction with modifiers like Scene.windowToolbarLabelStyle(fixed:) and Scene.windowToolbarLabelStyle(_:) to customize the appearance of window toolbars managed by SwiftUI.

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Styles.