<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKAction/duration",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKAction(py)duration"
  },
  "title" : "duration"
}
-->

# duration

The duration required to complete an action.

```
var duration: TimeInterval { get set }
```

## Discussion

This is the expected duration of an action’s animation. The actual time an action takes to complete is modified by the [`speed`](/documentation/SpriteKit/SKAction/speed) property of the action and the [`speed`](/documentation/SpriteKit/SKNode/speed) property of the node on which it executes.

---

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)