Contents

init(_:systemImage:value:content:)

Creates a tab that the tab view presents when the tab view’s selection matches the tab’s value using a system image for the tab’s tab item image, with a localized string key label.

Declaration

nonisolated init(_ titleKey: LocalizedStringKey, systemImage: String, value: Value, @ViewBuilder content: () -> Content) where Label == DefaultTabLabel

Parameters

  • titleKey:

    The localized string key label for the tab’s tab item.

  • systemImage:

    The system image for the tab’s tab item.

  • value:

    The selection value which selects this tab.

  • content:

    The view content of the tab.

See Also

Creating a tab with system symbol