---
title: "loadAssociatedTracks(ofType:completionHandler:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avassettrack/loadassociatedtracks(oftype:completionhandler:)"
---

# loadAssociatedTracks(ofType:completionHandler:)

Loads associated tracks that have the specified association type.

## Declaration

```swift
func loadAssociatedTracks(ofType trackAssociationType: AVAssetTrack.AssociationType, completionHandler: @escaping @Sendable ([AVAssetTrack]?, (any Error)?) -> Void)
```

```swift
func loadAssociatedTracks(ofType trackAssociationType: AVAssetTrack.AssociationType) async throws -> [AVAssetTrack]
```

## Parameters

- `trackAssociationType`: The track association type to load tracks for.
- `completionHandler`: A callback that the system invokes after it finishes the loading request. It passes the completion handler the following parameters:

## See Also

### Loading track associations

- [availableTrackAssociationTypes](avfoundation/avpartialasyncproperty/availabletrackassociationtypes.md)
