<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureResolvedPhotoSettings/isFlashEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureResolvedPhotoSettings(py)flashEnabled"
  },
  "title" : "isFlashEnabled"
}
-->

# isFlashEnabled

A Boolean value indicating whether the camera flash fires for this capture.

```
var isFlashEnabled: Bool { get }
```

## Discussion

This property corresponds to the [`AVCapturePhotoSettings`](/documentation/AVFoundation/AVCapturePhotoSettings) property [`flashMode`](/documentation/AVFoundation/AVCapturePhotoSettings/flashMode).

If you specify a flash mode of [`AVCaptureDevice.FlashMode.auto`](/documentation/AVFoundation/AVCaptureDevice/FlashMode-swift.enum/auto) when requesting a capture, the device automatically chooses whether to use the flash based on the scene contents at the moment of capture. Therefore, you don’t know whether the flash will fire until right before the moment of capture. When the photo output calls your [`photoOutput(_:willBeginCaptureFor:)`](/documentation/AVFoundation/AVCapturePhotoCaptureDelegate/photoOutput(_:willBeginCaptureFor:)) method (or other delegate methods that occur later in the capture process), you can use this property to determine whether a capture uses the flash.

> Note:
> The flash can also become temporarily disabled if the device is too hot. In this case, the flash will not fire even if you specify a flash mode of ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureDevice/FlashMode-swift.enum/on``, and the resolved photo settings object passed to your ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCapturePhotoCaptureDelegate`` method has a ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureResolvedPhotoSettings/isFlashEnabled`` value of <doc://com.apple.documentation/documentation/Swift/false>. To detect when the flash is temporarily disabled, key-value observe the ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureDevice/isFlashAvailable`` property.

---

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)