Generic Instance Method


Sets the TouchBar and its content to be shown in the Touch Bar when applicable


func touchBar<Content>(_ touchBar: TouchBar<Content>) -> some View where Content : View

See Also

Configuring Touch Bar Views

func touchBarItemPrincipal(Bool) -> View

Principal views have special significance to this TouchBar. Currently, that item will be placed in the center of the row.

func touchBarCustomizationLabel(Text) -> View

The user-visible String identifying the view’s functionality. Visible during user customization.

func touchBarItemPresence(TouchBarItemPresence) -> View

The behavior of the view when being customized by the user. Views may be: