---
title: currentPage
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipagecontrol/currentpage
---

# currentPage

The current page, shown by the page control as a white dot.

## Declaration

```swift
var currentPage: Int { get set }
```

## Discussion

Discussion The property value is an integer specifying the current page shown minus one; thus a value of zero (the default) indicates the first page. A page control shows the current page as a white dot. Values outside the possible range are pinned to either 0 or numberOfPages minus 1.

## See Also

### Managing pages

- [numberOfPages](uikit/uipagecontrol/numberofpages.md)
- [hidesForSinglePage](uikit/uipagecontrol/hidesforsinglepage.md)
- [defersCurrentPageDisplay](uikit/uipagecontrol/deferscurrentpagedisplay.md)
- [updateCurrentPageDisplay()](uikit/uipagecontrol/updatecurrentpagedisplay().md)
