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

# isFocusModeSupported(_:)

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

## Declaration

```swift
func isFocusModeSupported(_ focusMode: AVCaptureDevice.FocusMode) -> Bool
```

## Parameters

- `focusMode`: A focus mode to query.

## Return Value

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

## See Also

### Configuring automatic focus

- [focusMode](avfoundation/avcapturedevice/focusmode-swift.property.md)
- [AVCaptureDevice.FocusMode](avfoundation/avcapturedevice/focusmode-swift.enum.md)
- [isSmoothAutoFocusSupported](avfoundation/avcapturedevice/issmoothautofocussupported.md)
- [isSmoothAutoFocusEnabled](avfoundation/avcapturedevice/issmoothautofocusenabled.md)
- [isFaceDrivenAutoFocusEnabled](avfoundation/avcapturedevice/isfacedrivenautofocusenabled.md)
- [automaticallyAdjustsFaceDrivenAutoFocusEnabled](avfoundation/avcapturedevice/automaticallyadjustsfacedrivenautofocusenabled.md)
- [isAutoFocusRangeRestrictionSupported](avfoundation/avcapturedevice/isautofocusrangerestrictionsupported.md)
- [autoFocusRangeRestriction](avfoundation/avcapturedevice/autofocusrangerestriction-swift.property.md)
- [AVCaptureDevice.AutoFocusRangeRestriction](avfoundation/avcapturedevice/autofocusrangerestriction-swift.enum.md)
