---
title: AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.auto
framework: avfoundation
role: symbol
role_heading: Case
path: avfoundation/avcapturedevice/primaryconstituentdeviceswitchingbehavior-swift.enum/auto
---

# AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.auto

The device automatically selects the best camera for the current scene.

## Declaration

```swift
case auto
```

## Discussion

Discussion This mode places no restrictions on when a camera switch can occur.

## See Also

### Switching behaviors

- [AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.unsupported](avfoundation/avcapturedevice/primaryconstituentdeviceswitchingbehavior-swift.enum/unsupported.md)
- [AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.restricted](avfoundation/avcapturedevice/primaryconstituentdeviceswitchingbehavior-swift.enum/restricted.md)
- [AVCaptureDevice.PrimaryConstituentDeviceSwitchingBehavior.locked](avfoundation/avcapturedevice/primaryconstituentdeviceswitchingbehavior-swift.enum/locked.md)
