---
title: "addMutableTracksCopyingSettings(from:options:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmutablemovie/addmutabletrackscopyingsettings(from:options:)"
---

# addMutableTracksCopyingSettings(from:options:)

Adds one or more empty tracks to the target movie and copies the track settings from the source tracks.

## Declaration

```swift
func addMutableTracksCopyingSettings(from existingTracks: [AVAssetTrack], options: [String : Any]? = nil) -> [AVMutableMovieTrack]
```

## Parameters

- `existingTracks`: An array of asset tracks to be added.
- `options`: A dictionary that contains key for specifying the movie object initialization. Currently, no keys are defined.

## Return Value

Return Value An array of AVMutableMovieTrack objects. The index of a track in this array is the same as the index of its source track in the existingTracks array.

## Discussion

Discussion Properties involving pairs of tracks,such as track references, are copied from the source tracks to the target tracks.

## See Also

### Managing tracks

- [mutableTrack(compatibleWith:)](avfoundation/avmutablemovie/mutabletrack(compatiblewith:).md)
- [addMutableTrack(withMediaType:copySettingsFrom:options:)](avfoundation/avmutablemovie/addmutabletrack(withmediatype:copysettingsfrom:options:).md)
- [removeTrack(_:)](avfoundation/avmutablemovie/removetrack(_:).md)
