---
title: "canAdd(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avassetwriter/canadd(_:)-8s1oh"
---

# canAdd(_:)

Determines whether the asset writer supports adding the input group.

## Declaration

```swift
func canAdd(_ inputGroup: AVAssetWriterInputGroup) -> Bool
```

## Parameters

- `inputGroup`: The asset writer input group to add.

## Return Value

Return Value true if you can add the input group to the asset writer; otherwise false.

## Discussion

Discussion This method returns false if the asset writer’s output file type doesn’t support mutually exclusive relationships among tracks, or if the input group contains inputs with media types that you can’t relate.

## See Also

### Configuring input groups

- [inputGroups](avfoundation/avassetwriter/inputgroups.md)
- [add(_:)](avfoundation/avassetwriter/add(_:)-3san4.md)
