---
title: maxAvailableTorchLevel
framework: avfoundation
role: symbol
role_heading: Type Property
path: avfoundation/avcapturedevice/maxavailabletorchlevel
---

# maxAvailableTorchLevel

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

## Declaration

```swift
class let maxAvailableTorchLevel: Float
```

## Discussion

Discussion Pass this value to the setTorchModeOn(level:) method to set the torch to the maximum level currently available. Under thermal duress, the maximum available torch level may be less than 1.0.

## See Also

### Configuring torch settings

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