---
title: hidesForSinglePage
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipagecontrol/hidesforsinglepage
---

# hidesForSinglePage

A Boolean value that controls whether the page control is hidden when there is only one page.

## Declaration

```swift
var hidesForSinglePage: Bool { get set }
```

## Discussion

Discussion Assign a value of true to hide the page control when there is only one page; assign false (the default) to show the page control if there is only one page.

## See Also

### Managing pages

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