Contents

scale(to:)

Scales the sprite node to a specified size.

Declaration

func scale(to size: CGSize)

Discussion

This method works by setting the sprite node’s xScale and yScale to achieve the specified size in its parent’s coordinate space.

See Also

Setting a Sprite’s Size and Position