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

# prefersHomeIndicatorAutoHidden

A Boolean that indicates whether the system is allowed to hide the visual indicator for returning to the Home Screen.

```
var prefersHomeIndicatorAutoHidden: Bool { get }
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if your view controller lets the system determine when to hide the indicator, or <doc://com.apple.documentation/documentation/Swift/false> if you want the indicator to show at all times. The default implementation of this method returns <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Override this method to signal your preference for displaying the visual indicator. The system takes your preference into account, but returning <doc://com.apple.documentation/documentation/Swift/true> is no guarantee that the indicator will be hidden.

For information on allowing app-defined gestures to take precedence over system gestures for certain screen edges, see [`preferredScreenEdgesDeferringSystemGestures`](/documentation/UIKit/UIViewController/preferredScreenEdgesDeferringSystemGestures).

---

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)