<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetWriter/canAdd(_:)-8s1oh",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetWriter(im)canAddInputGroup:"
  },
  "title" : "canAdd(_:)"
}
-->

# canAdd(_:)

Determines whether the asset writer supports adding the input group.

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

## Parameters

`inputGroup`

The asset writer input group to add.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if you can add the input group to the asset writer; otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

This method returns <doc://com.apple.documentation/documentation/Swift/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)