Contents

init(role:content:)

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

Declaration

init(role: TabRole?, @ViewBuilder content: () -> Content) where Label == DefaultTabLabel

Parameters

  • role:

    The role defining the semantic purpose of the tab.

  • content:

    The view content of the tab.

See Also

Creating a tab