---
title: "didMove(to:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/skscene/didmove(to:)"
---

# didMove(to:)

Tells you when the scene is presented by a view.

## Declaration

```swift
func didMove(to view: SKView)
```

## Parameters

- `view`: The view that is presenting the scene.

## Discussion

Discussion This method is intended to be overridden in a subclass. You can use this method to implement any custom behavior for your scene when it is about to be presented by a view. For example, you might use this method to create the scene’s contents.

## See Also

### Responding to Loading and Resizing Events

- [sceneDidLoad()](spritekit/skscene/scenedidload().md)
- [didChangeSize(_:)](spritekit/skscene/didchangesize(_:).md)
- [willMove(from:)](spritekit/skscene/willmove(from:).md)
