Instance Method

touchBarItemPresence(_:)

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

Declaration

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

Discussion

  • required and not allowed to be removed by the user

  • shown by default prior to user customization, but removable

  • not visible by default, but can be added through the palette

See Also

Configuring Touch Bar Views

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

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

Beta
func touchBarItemPrincipal(Bool) -> View

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

Beta
func touchBarCustomizationLabel(Text) -> View

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

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software