---
title: segments
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcompositiontrack/segments
---

# segments

The time mappings from the track’s media samples to its timeline.

## Declaration

```swift
var segments: [AVCompositionTrackSegment] { get }
```

## See Also

### Accessing track segments

- [segment(forTrackTime:)](avfoundation/avcompositiontrack/segment(fortracktime:).md)
