---
title: "presentationIndex(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipageviewcontrollerdatasource/presentationindex(for:)"
---

# presentationIndex(for:)

Returns the index of the selected item to be reflected in the page indicator.

## Declaration

```swift
optional func presentationIndex(for pageViewController: UIPageViewController) -> Int
```

## Parameters

- `pageViewController`: The page view controller.

## Return Value

Return Value The index of the selected item to be reflected in the page indicator.

## See Also

### Supporting a Page Indicator

- [presentationCount(for:)](uikit/uipageviewcontrollerdatasource/presentationcount(for:).md)
