<!--
{
  "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/PageTabViewStyle/IndexDisplayMode",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16PageTabViewStyleV16IndexDisplayModeV"
  },
  "title" : "PageTabViewStyle.IndexDisplayMode"
}
-->

# PageTabViewStyle.IndexDisplayMode

A style for displaying the page index view

```
struct IndexDisplayMode
```

## Topics

### Getting the modes

[`always`](/documentation/SwiftUI/PageTabViewStyle/IndexDisplayMode/always)

Always display an index view regardless of page count

[`automatic`](/documentation/SwiftUI/PageTabViewStyle/IndexDisplayMode/automatic)

Displays an index view when there are more than one page

[`never`](/documentation/SwiftUI/PageTabViewStyle/IndexDisplayMode/never)

Never display an index view



---

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)