Contents

init(content:label:)

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

Declaration

init(@ViewBuilder content: () -> Content, @ViewBuilder label: () -> Label)

Parameters

  • content:

    The view content of the tab.

  • label:

    The label for the tab’s tab item.

See Also

Creating a tab with label