Contents

rotate(by:)

Rotates subsequent drawing operations by an angle.

Declaration

mutating func rotate(by angle: Angle)

Parameters

  • angle:

    The amount to rotate.

Discussion

Calling this method is equivalent to updating the context’s transform directly using the angle parameter:

transform = transform.rotated(by: angle.radians)

See Also

Applying transforms