Contents

CMTimeRangeGetUnion(_:otherRange:)

Returns a new time range with the time elements of the input.

Declaration

func CMTimeRangeGetUnion(_ range: CMTimeRange, otherRange: CMTimeRange) -> CMTimeRange

Parameters

  • range:

    The first time range.

  • otherRange:

    The second time range.

Return Value

A time range with the unique time elements of the input.

Discussion

The return value contains the smallest range that includes all times that are in either range.

See Also

Inspecting Time Ranges