You can scale a view by creating a Transform
and setting it to the view’s property:
view.transform = Transform.makeScale()
A scaled object will scale its visible properties, in this example the
lineWidth
on the second circle is twice as big as the original.
let c = Circle(center: canvas.center, radius: 75)
c.lineWidth = 15.0
let scale = Transform.makeScale(2.0, 2.0)
let c2 = Circle(center: c.center, radius: 75)
c2.lineWidth = c.lineWidth
c2.transform = scale
c2.center = canvas.center
canvas.add(c2)
canvas.add(c)