Contents

init(value:role:content:)

Creates a new tab with a label inferred from the role.

Declaration

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

Parameters

  • value:

    The selection value which selects this tab.

  • role:

    The role defining the semantic purpose of the tab.

  • content:

    The view content of the tab.

See Also

Creating a tab