Skip Navigation
Class

SKView

A view subclass that renders a SpriteKit scene.
@MainActor
class SKView

Mentioned in

Overview

You present a scene by calling the view’s presentScene(_:) method. When a scene is presented by the view, it alternates between running its simulation (which animates the content) and rendering the content for display. You can pause the scene by setting the view’s isPaused property to true.

Topics

Present a scene to display content on the screen.
Control the timing of the view’s screen updates.
Control hints that have performance implications which are unique to your app.
Display metrics in the bottom corner of the view for debugging purposes.
Convert to or from scene and view coordinates which is a common task for touch or mouse input.
Create a texture that is a flattened or cropped portion of the node heirarchy.

See Also

Current page is SKView