A view that switches between multiple child views using interactive user interface elements.
- iOS 13.0+Beta
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
- Xcode 11.0+Beta
To create a user interface with tabs, place views in a
Tab and apply the tabItem(_:) modifier to the contents of each tab. The following creates a tab view with three tabs: