Contents

scale(_:anchor:)

Scales this shape without changing its bounding frame.

Declaration

func scale(_ scale: CGFloat, anchor: UnitPoint = .center) -> ScaledShape<Self>

Parameters

  • scale:

    The multiplication factor used to resize this shape. A value of 0 scales the shape to have no size, 0.5 scales to half size in both dimensions, 2 scales to twice the regular size, and so on.

Return Value

A scaled form of this shape.

See Also

Transforming a shape