<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImagePickerController/cameraFlashMode-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIImagePickerController(py)cameraFlashMode"
  },
  "title" : "cameraFlashMode"
}
-->

# cameraFlashMode

The flash mode used by the active camera.

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

## Discussion

The various flash modes are listed in the [`UIImagePickerController.CameraFlashMode`](/documentation/UIKit/UIImagePickerController/CameraFlashMode-swift.enum) enumeration. The default value is [`UIImagePickerController.CameraFlashMode.auto`](/documentation/UIKit/UIImagePickerController/CameraFlashMode-swift.enum/auto).

The value of this property specifies the behavior of the still-image flash when the value of the [`cameraCaptureMode`](/documentation/UIKit/UIImagePickerController/cameraCaptureMode-swift.property) property is [`UIImagePickerController.CameraCaptureMode.photo`](/documentation/UIKit/UIImagePickerController/CameraCaptureMode-swift.enum/photo), and specifies the behavior of the video torch when [`cameraCaptureMode`](/documentation/UIKit/UIImagePickerController/cameraCaptureMode-swift.property) is [`UIImagePickerController.CameraCaptureMode.video`](/documentation/UIKit/UIImagePickerController/CameraCaptureMode-swift.enum/video).

## See Also

[`cameraDevice`](/documentation/UIKit/UIImagePickerController/cameraDevice-swift.property)

The camera used by the image picker controller.

[`cameraCaptureMode`](/documentation/UIKit/UIImagePickerController/cameraCaptureMode-swift.property)

The capture mode used by the camera.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)