Instance Property


A Boolean value that indicates whether parent-child and sibling relationships affect the rendering order of nodes in the scene.


var ignoresSiblingOrder: Bool { get set }


The default value is false, which means that when multiple nodes share the same z position, those nodes are sorted and rendered in a deterministic order. Parents are rendered before their children, and siblings are rendered in array order. When this property is set to true, the position of the nodes in the tree is ignored when determining the rendering order. The rendering order of nodes at the same z position is arbitrary and may change every time a new frame is rendered. When sibling and parent order is ignored, SpriteKit applies additional optimizations to improve rendering performance. If you need nodes to be rendered in a specific and deterministic order, you must set the z position of those nodes.

See Also

Configuring How a Scene Is Rendered

var delegate: SKViewDelegate?

A delegate that allows dynamic control of the view's render rate.

var preferredFramesPerSecond: Int

The animation frame rate that the view uses to render its scene.

var isAsynchronous: Bool

A Boolean value that indicates whether the content is rendered asynchronously.

var frameInterval: Int

The number of frames that must pass before the scene is called to update its contents.

var allowsTransparency: Bool

A Boolean property that indicates whether the view is rendered using transparency.

var shouldCullNonVisibleNodes: Bool

A Boolean value that indicates whether the view automatically culls non-visible nodes from the rendering tree.