Sets a transform ramp to apply during a given time range.
SDKs
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- AVFoundation
Declaration
func setTransformRamp(fromStart startTransform: CGAffine Transform, toEnd endTransform: CGAffine Transform, timeRange: CMTime Range)
Parameters
startTransform
The transform to be applied at the starting time of
time
.Range endTransform
The transform to be applied at the end time of
time
.Range timeRange
The time range over which the value of the transform is interpolated between
start
andTransform end
.Transform
Discussion
During a transform ramp, the affine transform is interpolated between the values set at the ramp's start time and end time. Before the first specified time for which a transform is set, the affine transform is held constant at the value of identity
; after the last time for which a transform is set, the affine transform is held constant at that last value.