PageTabViewStyle

A TabViewStyle that displays a paged scrolling TabView.

StructureiOS 14.0+tvOS 14.0+watchOS 7.0+PageTabViewStyle in SwiftUI

Declaration

React
type PageTabViewStyle = { indexDisplayMode?: PageTabViewStyleIndexDisplayMode; };
Swift
nonisolated struct PageTabViewStyle

Type methods

Properties

Overview

Use TabViewStyle.page or TabViewStyle.page(indexDisplayMode:) 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.