---
title: unlockForConfiguration()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avcapturedevice/unlockforconfiguration()
---

# unlockForConfiguration()

Releases exclusive control over device hardware properties.

## Declaration

```swift
func unlockForConfiguration()
```

## Discussion

Discussion If you’ve previously locked a device by calling lockForConfiguration(), call this method when your app no longer requires preventing device properties from changing automatically.

## See Also

### Configuring camera hardware

- [lockForConfiguration()](avfoundation/avcapturedevice/lockforconfiguration().md)
- [isSubjectAreaChangeMonitoringEnabled](avfoundation/avcapturedevice/issubjectareachangemonitoringenabled.md)
- [subjectAreaDidChangeNotification](avfoundation/avcapturedevice/subjectareadidchangenotification.md)
- [Formats](avfoundation/capture-device-formats.md)
- [Focus](avfoundation/capture-device-focus.md)
- [Exposure](avfoundation/capture-device-exposure.md)
- [White balance](avfoundation/capture-device-white-balance.md)
- [Lighting](avfoundation/capture-device-lighting.md)
- [Color](avfoundation/capture-device-color.md)
- [Zoom](avfoundation/capture-device-zoom.md)
