---
title: isLocked
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipointerlockstate/islocked
---

# isLocked

A Boolean value that indicates whether the pointer is locked.

## Declaration

```swift
var isLocked: Bool { get }
```

## Discussion

Discussion This value reflects the status of the pointer lock for the scene, as determined by the system. A view controller specifies its preferred pointer lock value, but the system may not honor the request. This property is key-value observable. The didChangeNotification is posted when it changes.
