init(_:image:role:content:)
Creates a new tab that you can use in a tab view, with a localized string key label.
Declaration
init(_ titleKey: LocalizedStringKey, image: String, role: TabRole?, @ViewBuilder content: () -> Content) where Label == DefaultTabLabelParameters
- titleKey:
The localized string key label for the tab’s tab item.
- image:
The image for the tab’s tab item.
- role:
The role defining the semantic purpose of the tab.
- content:
The view content of the tab.