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

# childViewControllerForPointerLock

A child view controller to query for the pointer lock preference.

```
var childViewControllerForPointerLock: UIViewController? { get }
```

## Discussion

Call [`setNeedsUpdateOfPrefersPointerLocked()`](/documentation/UIKit/UIViewController/setNeedsUpdateOfPrefersPointerLocked()) if the child view controller that the system needs to query for the pointer lock preference changes.

---

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)