Contents

init(id:content:)

Creates a customizable Touch Bar view container with a globally unique identifier.

Declaration

init(id: String, @ViewBuilder content: () -> Content)

Parameters

  • id:

    A globally unique identifier for this Touch Bar.

  • content:

    A collection of views to be displayed by the Touch Bar.

Discussion

Be sure that each view in content has an explicit touchBarItemPresence value with customization identifier.

See Also

Creating a Touch Bar view