---
title: "isTorchModeSupported(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturedevice/istorchmodesupported(_:)"
---

# isTorchModeSupported(_:)

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

## Declaration

```swift
func isTorchModeSupported(_ torchMode: AVCaptureDevice.TorchMode) -> Bool
```

## Parameters

- `torchMode`: The desired torch mode.

## Return Value

Return Value true if the device supports the torch mode; otherwise, false.

## 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)
- [setTorchModeOn(level:)](avfoundation/avcapturedevice/settorchmodeon(level:).md)
- [maxAvailableTorchLevel](avfoundation/avcapturedevice/maxavailabletorchlevel.md)
