init(role:content:label:)
Creates a new tab with a label that you can use in a tab view.
Declaration
init(role: TabRole?, @ViewBuilder content: () -> Content, @ViewBuilder 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.