<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVVideoCompositionInstruction-swift.class/timeRange",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVVideoCompositionInstruction(py)timeRange"
  },
  "title" : "timeRange"
}
-->

# timeRange

The time range to which the instruction applies.

```
var timeRange: CMTimeRange { get }
```

## Discussion

If the time range is invalid, the video compositor will ignore it. See also the requirements of the [`timeRange`](/documentation/AVFoundation/AVVideoCompositionInstruction-swift.class/timeRange) property in the array of objects implementing the [`AVVideoCompositionInstructionProtocol`](/documentation/AVFoundation/AVVideoCompositionInstructionProtocol) protocol as described in the [`AVVideoComposition`](/documentation/AVFoundation/AVVideoComposition) class’s [`instructions`](/documentation/AVFoundation/AVVideoComposition/instructions) property.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)