---
title: "findCompatibleTrack(for:completionHandler:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avurlasset/findcompatibletrack(for:completionhandler:)"
---

# findCompatibleTrack(for:completionHandler:)

Loads an asset track from which you can insert any time range into the composition track.

## Declaration

```swift
func findCompatibleTrack(for compositionTrack: AVCompositionTrack, completionHandler: @escaping @Sendable (AVAssetTrack?, (any Error)?) -> Void)
```

```swift
func findCompatibleTrack(for compositionTrack: AVCompositionTrack) async throws -> AVAssetTrack?
```

## Parameters

- `compositionTrack`: A composition track to request an asset track for.
- `completionHandler`: A callback the system invokes after it finishes the request. The system calls the completion handler with the following arguments:

## Discussion

Discussion This method is the logical complement of mutableTrack(compatibleWith:).

## See Also

### Loading tracks

- [tracks](avfoundation/avpartialasyncproperty/tracks-44ptx.md)
