<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKSceneDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SKSceneDelegate"
  },
  "title" : "SKSceneDelegate"
}
-->

# SKSceneDelegate

Methods that, when implemented, allow any class to participate in the SpriteKit render loop callbacks.

```
protocol SKSceneDelegate : NSObjectProtocol
```

## Overview

The [`SKSceneDelegate`](/documentation/SpriteKit/SKSceneDelegate) protocol is used to implement a delegate to be called whenever the scene is being animated. Typically, you supply a delegate when you want to use a scene without requiring the scene to be subclassed. The methods in this protocol all correspond to methods implemented by the [`SKScene`](/documentation/SpriteKit/SKScene) class. If the delegate implements a particular method, that method is called instead of the corresponding method on the scene object.

When processing a scene, SpriteKit runs a loop that processes and renders the scene. The [`SKSceneDelegate`](/documentation/SpriteKit/SKSceneDelegate) methods allows you to add logic at any step of the loop.

![Frame processing in a scene](images/com.apple.spritekit/media-2527821@2x.png)

> Important:
> If your view has a ``doc://com.apple.spritekit/documentation/SpriteKit/SKViewDelegate`` and its ``doc://com.apple.spritekit/documentation/SpriteKit/SKViewDelegate/view(_:shouldRenderAtTime:)`` method returns <doc://com.apple.documentation/documentation/Swift/false>, the update is skipped and none of the scene delegate methods are called.

## Topics

### Handling Animation Events

[Use SpriteKit Objects within Scene Delegate Callbacks](/documentation/SpriteKit/use-spritekit-objects-within-scene-delegate-callbacks)

Follow threading guidelines to keep your SpriteKit app thread safe.

[`update(_:for:)`](/documentation/SpriteKit/SKSceneDelegate/update(_:for:))

Tells you to perform any app specific logic to update your scene.

[`didEvaluateActions(for:)`](/documentation/SpriteKit/SKSceneDelegate/didEvaluateActions(for:))

Tells you to peform any necessary logic after scene actions are evaluated.

[`didSimulatePhysics(for:)`](/documentation/SpriteKit/SKSceneDelegate/didSimulatePhysics(for:))

Tells you to peform any necessary logic after physics simulations are performed.

[`didApplyConstraints(for:)`](/documentation/SpriteKit/SKSceneDelegate/didApplyConstraints(for:))

Tells you to peform any necessary logic after constraints are applied.

[`didFinishUpdate(for:)`](/documentation/SpriteKit/SKSceneDelegate/didFinishUpdate(for:))

Tells you to peform any necessary logic after the scene has finished all of the steps required to process animations.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)