Contents

init(role:content:label:)

Creates a new tab with a label that you can use in a tab view.

Declaration

init(role: TabRole?, @ContentBuilder content: () -> Content, @ContentBuilder label: () -> Label)

Parameters

  • role:

    The role defining the semantic purpose of the tab.

  • content:

    The view content of the tab.

  • label:

    The label for the tab’s tab item.

See Also

Creating a tab with label