---
title: "scale(to:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/skspritenode/scale(to:)"
---

# scale(to:)

Scales the sprite node to a specified size.

## Declaration

```swift
func scale(to size: CGSize)
```

## Discussion

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

- [Using the Anchor Point to Move a Sprite](spritekit/using-the-anchor-point-to-move-a-sprite.md)
- [size](spritekit/skspritenode/size.md)
- [anchorPoint](spritekit/skspritenode/anchorpoint.md)
