---
title: hasFlash
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/hasflash
---

# hasFlash

A Boolean value that indicates whether the capture device has a flash.

## Declaration

```swift
var hasFlash: Bool { get }
```

## Discussion

Discussion This property is key-value observable.

## See Also

### Configuring flash settings

- [isFlashAvailable](avfoundation/avcapturedevice/isflashavailable.md)
- [isFlashActive](avfoundation/avcapturedevice/isflashactive.md)
- [flashMode](avfoundation/avcapturedevice/flashmode-swift.property.md)
- [isFlashModeSupported(_:)](avfoundation/avcapturedevice/isflashmodesupported(_:).md)
- [AVCaptureDevice.FlashMode](avfoundation/avcapturedevice/flashmode-swift.enum.md)
