---
title: "validateSegments(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmutablecompositiontrack/validatesegments(_:)"
---

# validateSegments(_:)

Returns a Boolean value that indicates whether a given array of track segments conform to the timing rules for a composition track.

## Declaration

```swift
func validateSegments(_ trackSegments: [AVCompositionTrackSegment]) throws
```

## Parameters

- `trackSegments`: The track segments to validate.
