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

# AVCaptureDevice.FlashMode.auto

A mode that indicates the device continuously monitors light levels and uses the flash when necessary.

## Declaration

```swift
case auto
```

## Mentioned in

Tracking photo capture progress

## See Also

### Flash modes

- [AVCaptureDevice.FlashMode.off](avfoundation/avcapturedevice/flashmode-swift.enum/off.md)
- [AVCaptureDevice.FlashMode.on](avfoundation/avcapturedevice/flashmode-swift.enum/on.md)
