---
title: "compatibleTrack(for:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avurlasset/compatibletrack(for:)"
---

# compatibleTrack(for:)

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

## Declaration

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

## Parameters

- `compositionTrack`: The composition track.

## Return Value

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

## Discussion

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:) instead. This method is the logical complement of mutableTrack(compatibleWith:).
