---
title: "didChangeSize(_:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/skscene/didchangesize(_:)"
---

# didChangeSize(_:)

Tells you when the scene’s size has changed.

## Declaration

```swift
func didChangeSize(_ oldSize: CGSize)
```

## Parameters

- `oldSize`: The old size of the scene, in points.

## Mentioned in

Scaling a Scene’s Content to Fit the View

## Discussion

Discussion This method is intended to be overridden in a subclass. Typically, you use this method to adjust the positions of nodes in the scene.

## See Also

### Responding to Loading and Resizing Events

- [sceneDidLoad()](spritekit/skscene/scenedidload().md)
- [willMove(from:)](spritekit/skscene/willmove(from:).md)
- [didMove(to:)](spritekit/skscene/didmove(to:).md)
