Instance Method

touchBarItemPresence(_:)

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

Declaration

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

Discussion

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>(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.

struct TouchBar

A container for a view that you can show in the Touch Bar.

enum TouchBarItemPresence

Options that affect user customization of the Touch Bar.