Contents

init(selection:content:)

Creates a tab view that uses a builder to create and specify selection values for its tabs.

Declaration

init<C>(selection: Binding<SelectionValue>, @TabContentBuilder<SelectionValue> content: () -> C) where Content == TabContentBuilder<SelectionValue>.Content<C>, C : TabContent

Parameters

  • selection:

    The selection in the TabView. The value of this binding must match the value of the tabs in content.

  • content:

    The Tab content.

See Also

Creating a tab view