View Source TabView
<TabView>
Container that presents content on separate pages.
Overview
Each child element will become its own tab.
<TabView class="tab-view-style-page">
<Rectangle fillColor="system-red" />
<Rectangle fillColor="system-red" />
<Rectangle fillColor="system-red" />
</TabView>The icon shown in the index view can be configured with the TabItemModifier modifier.
Bindings
SwiftUI Documentation
See SwiftUI.TabView for more details on this View.
References
Link to this reference
selection
Synchronizes the selected tab with the server.
Discussion
Use the TagModifier modifier to set the selection value for a given tab.