setTransform(_:at:)
Sets the transform value at a time within the time range of the instruction.
Declaration
func setTransform(_ transform: CGAffineTransform, at time: CMTime)Parameters
- transform:
The transform to be applied at
time. - time:
A time value within the time range of the composition instruction.
Discussion
Sets a fixed transform to apply from the specified time until the next time at which a transform is set. This is the same as setting a flat ramp for that time range. Before the first specified time for which a transform is set, the affine transform is held constant at the value of CGAffineTransformIdentity; after the last time for which a transform is set, the affine transform is held constant at that last value.