---
title: isTorchAvailable
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/istorchavailable
---

# isTorchAvailable

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

## Declaration

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

## Discussion

Discussion The torch may become unavailable if, for example, the device overheats and needs to cool off. This property is key-value observable.

## See Also

### Configuring torch settings

- [hasTorch](avfoundation/avcapturedevice/hastorch.md)
- [isTorchActive](avfoundation/avcapturedevice/istorchactive.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)
