---
title: isTorchActive
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/istorchactive
---

# isTorchActive

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

## Declaration

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

## Discussion

Discussion A torch must be present on the device and currently available before it can be active. This property is key-value observable.

## See Also

### Configuring torch settings

- [hasTorch](avfoundation/avcapturedevice/hastorch.md)
- [isTorchAvailable](avfoundation/avcapturedevice/istorchavailable.md)
- [torchLevel](avfoundation/avcapturedevice/torchlevel.md)
- [torchMode](avfoundation/avcapturedevice/torchmode-swift.property.md)
- [AVCaptureDevice.TorchMode](avfoundation/avcapturedevice/torchmode-swift.enum.md)
- [isTorchModeSupported(_:)](avfoundation/avcapturedevice/istorchmodesupported(_:).md)
- [setTorchModeOn(level:)](avfoundation/avcapturedevice/settorchmodeon(level:).md)
- [maxAvailableTorchLevel](avfoundation/avcapturedevice/maxavailabletorchlevel.md)
