<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TabViewStyle/page(indexDisplayMode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12TabViewStylePA2A04PagecdE0VRszrlE4page16indexDisplayModeA2E05IndexiJ0V_tFZ"
  },
  "title" : "page(indexDisplayMode:)"
}
-->

# page(indexDisplayMode:)

A `TabViewStyle` that implements a paged scrolling `TabView` with an
index display mode.

```
@MainActor @export(implementation) @preconcurrency static func page(indexDisplayMode: PageTabViewStyle.IndexDisplayMode) -> PageTabViewStyle
```

## Discussion

To apply this style to a tab view, or to a view that contains tab views, use
the [`tabViewStyle(_:)`](/documentation/SwiftUI/View/tabViewStyle(_:)) modifier.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)