Deviopath › Swift

Mutating Scale

Medium · Structs

Value types need mutating to change self. Write mutating func scale(_ factor: Int) on Rect that multiplies w and h. runScale is already written.

Next: Shape Protocol