<!--
{
  "documentType" : "article",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/capture-device-lighting",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Lighting"
}
-->

# Lighting

Configure the device flash, torch, and low light settings.

## Topics

### Configuring flash settings

[`hasFlash`](/documentation/AVFoundation/AVCaptureDevice/hasFlash)

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

[`flashAvailable`](/documentation/AVFoundation/AVCaptureDevice/isFlashAvailable)

A Boolean value that indicates whether the flash is currently available for use.

[`flashActive`](/documentation/AVFoundation/AVCaptureDevice/isFlashActive)

A Boolean value that indicates whether the flash is currently active.

[`flashMode`](/documentation/AVFoundation/AVCaptureDevice/flashMode-swift.property)

The device’s current flash mode.

[`-  isFlashModeSupported:`](/documentation/AVFoundation/AVCaptureDevice/isFlashModeSupported(_:))

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

[`FlashMode`](/documentation/AVFoundation/AVCaptureDevice/FlashMode-swift.enum)

Constants that specify the flash modes of a capture device.

### Configuring torch settings

[`hasTorch`](/documentation/AVFoundation/AVCaptureDevice/hasTorch)

A Boolean value that specifies whether the capture device has a torch.

[`torchAvailable`](/documentation/AVFoundation/AVCaptureDevice/isTorchAvailable)

A Boolean value that indicates whether the torch is currently available for use.

[`torchActive`](/documentation/AVFoundation/AVCaptureDevice/isTorchActive)

A Boolean value that indicates whether the device’s torch is currently active.

[`torchLevel`](/documentation/AVFoundation/AVCaptureDevice/torchLevel)

The current torch brightness level.

[`torchMode`](/documentation/AVFoundation/AVCaptureDevice/torchMode-swift.property)

The current torch mode.

[`TorchMode`](/documentation/AVFoundation/AVCaptureDevice/TorchMode-swift.enum)

Constants to specify the capture device’s torch mode.

[`-  isTorchModeSupported:`](/documentation/AVFoundation/AVCaptureDevice/isTorchModeSupported(_:))

Returns a Boolean value that indicates whether the device supports the specified torch mode.

[`-  setTorchModeOnWithLevel:error:`](/documentation/AVFoundation/AVCaptureDevice/setTorchModeOn(level:))

Sets the illumination level when in torch mode.

[`AVCaptureMaxAvailableTorchLevel`](/documentation/AVFoundation/AVCaptureDevice/maxAvailableTorchLevel)

A constant that indicates to set the torch to its maximum level.

### Configuring low light settings

[`lowLightBoostSupported`](/documentation/AVFoundation/AVCaptureDevice/isLowLightBoostSupported)

A Boolean value that indicates whether the capture device supports boosting images in low-light conditions.

[`lowLightBoostEnabled`](/documentation/AVFoundation/AVCaptureDevice/isLowLightBoostEnabled)

A Boolean value that indicates whether the capture device’s low light boost feature is in an enabled state.

[`automaticallyEnablesLowLightBoostWhenAvailable`](/documentation/AVFoundation/AVCaptureDevice/automaticallyEnablesLowLightBoostWhenAvailable)

A Boolean value that indicates whether the capture device automatically switches to low-light boost mode when necessary.



---

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)