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
0scales the shape to have no size,0.5scales to half size in both dimensions,2scales to twice the regular size, and so on.
Return Value
A scaled form of this shape.