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

# canAdd(_:)

Determines whether you can add the output to the asset reader.

## Declaration

```swift
func canAdd(_ output: AVAssetReaderOutput) -> Bool
```

## Parameters

- `output`: The asset reader output to test.

## Return Value

Return Value true if you can add the output; otherwise, false.

## Discussion

Discussion You may only add outputs that retrieve media data from the asset that you associate with the asset reader.

## See Also

### Managing outputs

- [add(_:)](avfoundation/avassetreader/add(_:).md)
- [outputs](avfoundation/avassetreader/outputs.md)
