---
title: "presentScene(_:transition:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/skview/presentscene(_:transition:)"
---

# presentScene(_:transition:)

Transitions from the current scene to a new scene.

## Declaration

```swift
func presentScene(_ scene: SKScene, transition: SKTransition)
```

## Parameters

- `scene`: The scene to present.
- `transition`: A transition used to animate between the two scenes.

## Discussion

Discussion If there is currently a scene presented by the view, the view’s scene property is updated immediately, the transition is executed to swap between the scenes. Otherwise, the new scene is presented immediately and the transition property is ignored.

## See Also

### Displaying a Scene

- [scene](spritekit/skview/scene.md)
- [presentScene(_:)](spritekit/skview/presentscene(_:).md)
- [SKTransition](spritekit/sktransition.md)
