Instance Method


Reports a video composition instruction with a time range that is invalid.


optional func videoComposition(_ videoComposition: AVVideoComposition, shouldContinueValidatingAfterFindingInvalidTimeRangeIn videoCompositionInstruction: AVVideoCompositionInstructionProtocol) -> Bool



The video composition being validated.


The video composition instruction.

Return Value

true if the video composition should continue validation in order to report additional problems that may exist, otherwise false.


A time range is considered invalid when it overlaps with the time range of a prior instruction, or that contains times earlier than the time range of a prior instruction

See Also

Configuring Validation Methods

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software