---
title: "canAddControl(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturesession/canaddcontrol(_:)"
---

# canAddControl(_:)

Returns a Boolean value that indicates whether a capture session add the specified control.

## Declaration

```swift
func canAddControl(_ control: AVCaptureControl) -> Bool
```

## Parameters

- `control`: The capture control to add.

## Mentioned in

Enhancing your app experience with the Camera Control

## Return Value

Return Value true if the capture session can add the control; otherwise, false.

## Discussion

Discussion Call this method to determine whether you can successfully add a control to a capture session using the addControl(_:) method. A capture session may not be able to add a control due to its current session configuration or if unsupported by the host platform.

## See Also

### Configuring capture controls

- [supportsControls](avfoundation/avcapturesession/supportscontrols.md)
- [maxControlsCount](avfoundation/avcapturesession/maxcontrolscount.md)
- [controls](avfoundation/avcapturesession/controls.md)
- [addControl(_:)](avfoundation/avcapturesession/addcontrol(_:).md)
- [removeControl(_:)](avfoundation/avcapturesession/removecontrol(_:).md)
- [setControlsDelegate(_:queue:)](avfoundation/avcapturesession/setcontrolsdelegate(_:queue:).md)
- [AVCaptureSessionControlsDelegate](avfoundation/avcapturesessioncontrolsdelegate.md)
- [controlsDelegate](avfoundation/avcapturesession/controlsdelegate.md)
- [controlsDelegateCallbackQueue](avfoundation/avcapturesession/controlsdelegatecallbackqueue.md)
