<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/IndexViewStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI14IndexViewStyleP"
  },
  "title" : "IndexViewStyle"
}
-->

# IndexViewStyle

Defines the implementation of all `IndexView` instances within a view
hierarchy.

```
protocol IndexViewStyle
```

## Overview

To configure the current `IndexViewStyle` for a view hierarchy, use the
`.indexViewStyle()` modifier.

## Topics

### Getting built-in index view styles

[`page`](/documentation/SwiftUI/IndexViewStyle/page)

An index view style that places a page index view over its content.

[`page(backgroundDisplayMode:)`](/documentation/SwiftUI/IndexViewStyle/page(backgroundDisplayMode:))

An index view style that places a page index view over its content.

### Supporting types

[`PageIndexViewStyle`](/documentation/SwiftUI/PageIndexViewStyle)

An index view style that places a page index view over its content.

## Relationships

### Conforming Types

[`PageIndexViewStyle`](/documentation/SwiftUI/PageIndexViewStyle)

---

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)