Instance Method

getTransformRamp(for:start:end:timeRange:)

Obtains the transform ramp that includes a specified time.

Declaration

func getTransformRamp(for time: CMTime, start startTransform: UnsafeMutablePointer<CGAffineTransform>?, end endTransform: UnsafeMutablePointer<CGAffineTransform>?, timeRange: UnsafeMutablePointer<CMTimeRange>?) -> Bool

Parameters

time

If a ramp with a time range that contains the specified time has been set, information about the effective ramp for that time is supplied. Otherwise, information about the first ramp that starts after the specified time is supplied.

startTransform

A pointer to a float to receive the starting transform value for the transform ramp.

This value may be NULL.

endTransform

A pointer to a float to receive the ending transform value for the transform ramp.

This value may be NULL.

timeRange

A pointer to a CMTimeRange to receive the time range of the transform ramp.

This value may be NULL.

Return Value

true if values are returned successfully, otherwise false. false is returned if time is beyond the duration of the last transform ramp that has been set.