---
title: cameraFlashMode
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiimagepickercontroller/cameraflashmode-swift.property
---

# cameraFlashMode

The flash mode used by the active camera.

## Declaration

```swift
var cameraFlashMode: UIImagePickerController.CameraFlashMode { get set }
```

## Discussion

Discussion The various flash modes are listed in the UIImagePickerController.CameraFlashMode enumeration. The default value is UIImagePickerController.CameraFlashMode.auto. The value of this property specifies the behavior of the still-image flash when the value of the cameraCaptureMode property is UIImagePickerController.CameraCaptureMode.photo, and specifies the behavior of the video torch when cameraCaptureMode is UIImagePickerController.CameraCaptureMode.video.

## See Also

### Related Documentation

- [cameraDevice](uikit/uiimagepickercontroller/cameradevice-swift.property.md)
- [cameraCaptureMode](uikit/uiimagepickercontroller/cameracapturemode-swift.property.md)

### Configuring the flash behavior

- [isFlashAvailable(for:)](uikit/uiimagepickercontroller/isflashavailable(for:).md)
- [UIImagePickerController.CameraFlashMode](uikit/uiimagepickercontroller/cameraflashmode-swift.enum.md)
