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 : TabContentParameters
- selection:
The selection in the TabView. The value of this binding must match the
valueof the tabs incontent. - content:
The Tab content.