<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPageControl/hidesForSinglePage",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPageControl(py)hidesForSinglePage"
  },
  "title" : "hidesForSinglePage"
}
-->

# hidesForSinglePage

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

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

## Discussion

Assign a value of <doc://com.apple.documentation/documentation/Swift/true> to hide the page control when there is only one page; assign <doc://com.apple.documentation/documentation/Swift/false> (the default) to show the page control if there is only one page.

---

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)