Instance Method

presentScene(_:)

Presents a scene.

Declaration

func presentScene(_ scene: SKScene?)

Parameters

scene

The scene to present.

Discussion

The new scene immediately replaces the current scene, if one exists.

See Also

Displaying a Scene

var scene: SKScene?

The scene currently presented by this view.

func presentScene(SKScene, transition: SKTransition)

Transitions from the current scene to a new scene.

class SKTransition

An object used to perform an animated transition to a new scene.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software