TabBarOnlyTabViewStyle

A tab view style that displays a tab bar when possible.

StructureiOS 18.0+macOS 15.0+tvOS 18.0+visionOS 2.0+TabBarOnlyTabViewStyle in SwiftUI

Declaration

React
type TabBarOnlyTabViewStyle = SwiftOpaque<'TabBarOnlyTabViewStyle'>;
Swift
nonisolated struct TabBarOnlyTabViewStyle

Overview

Use TabViewStyle.tabBarOnly to construct this style.

To apply this style to a tab view, or to a view that contains tab views, use the View.tabViewStyle(_:) modifier.

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also

More in Styles.