<!--
{
  "availability" : [
    "iOS: 4.0.0 - 16.0.0",
    "iPadOS: 4.0.0 - 16.0.0",
    "macCatalyst: 13.1.0 - 16.0.0",
    "macOS: 10.7.0 - 13.0.0",
    "tvOS: 9.0.0 - 16.0.0",
    "watchOS: 1.0.0 - 9.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVURLAsset/compatibleTrack(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVURLAsset(im)compatibleTrackForCompositionTrack:"
  },
  "title" : "compatibleTrack(for:)"
}
-->

# compatibleTrack(for:)

Returns an asset track from which you can insert any time range into a given composition track.

```
func compatibleTrack(for compositionTrack: AVCompositionTrack) -> AVAssetTrack?
```

## Parameters

`compositionTrack`

The composition track.

## Return Value

An asset track managed by the asset from which any time range can be inserted into a given composition track.

## Discussion

Apple discourages using this method in iOS 15, tvOS 15, macOS 12, and watchOS 8 or later. Load compatible tracks asynchronously using [`findCompatibleTrack(for:completionHandler:)`](/documentation/AVFoundation/AVURLAsset/findCompatibleTrack(for:completionHandler:)) instead.

This method is the logical complement of [`mutableTrack(compatibleWith:)`](/documentation/AVFoundation/AVMutableComposition/mutableTrack(compatibleWith:)).

---

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)