Instance Method


Sets the behavior of the view when being customized by the user.


func touchBarItemPresence(_ presence: TouchBarItemPresence) -> some View


Views may have one of the following presence values: required and not allowed to be removed by the user; shown by default prior to user customization but removable; or not visible by default but able to be added through the palette.

See Also

Configuring Touch Bar Views

func touchBar<Content>(content: () -> Content) -> View

Sets the content that the Touch Bar displays.

func touchBar<Content>(TouchBar<Content>) -> View

Sets the touch bar and its content to be shown in the Touch Bar when applicable.

func touchBarItemPrincipal(Bool) -> View

Sets the view as having special significance to the TouchBar.

func touchBarCustomizationLabel(Text) -> View

Sets a user-visible string identifying the view’s functionality.