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 == DefaultTabLabelParameters
- value:
The
selectionvalue which selects this tab. - role:
The
roledefining the semantic purpose of the tab. - content:
The view content of the tab.