<!--
{
  "availability" : [
    "iOS: 4.0.0 - 10.0.0",
    "iPadOS: 4.0.0 - 10.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/isFlashModeSupported(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDevice(im)isFlashModeSupported:"
  },
  "title" : "isFlashModeSupported(_:)"
}
-->

# isFlashModeSupported(_:)

Returns a Boolean value that indicates whether the device supports the given flash mode.

```
func isFlashModeSupported(_ flashMode: AVCaptureDevice.FlashMode) -> Bool
```

## Parameters

`flashMode`

A flash mode to test if the device supports.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the device supports the flash mode; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

---

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)