---
title: "wait(duration:)"
framework: scenekit
role: symbol
role_heading: Type Method
path: "scenekit/scnaction/wait(duration:)"
---

# wait(duration:)

Creates an action that idles for a specified period of time.

## Declaration

```swift
class func wait(duration sec: TimeInterval) -> SCNAction
```

## Parameters

- `sec`: The amount of time to wait.

## Return Value

Return Value A new action object.

## Discussion

Discussion When the action executes, the action waits for the specified amount of time and then ends. This is typically used as part of a sequence of actions to insert a delay between two other actions. You might also use it in conjunction with the runAction(_:completionHandler:) method to trigger code that needs to run at a later time. This action is not reversible; the reverse of this action is the same action.

## See Also

### Creating Actions That Add Delays to Action Sequences

- [wait(duration:withRange:)](scenekit/scnaction/wait(duration:withrange:).md)
