---
title: "repeatForever(_:)"
framework: spritekit
role: symbol
role_heading: Type Method
path: "spritekit/skaction/repeatforever(_:)"
---

# repeatForever(_:)

Creates an action that repeats another action forever.

## Declaration

```swift
class func repeatForever(_ action: SKAction) -> SKAction
```

## Parameters

- `action`: The action to execute.

## Return Value

Return Value A new action object.

## Discussion

Discussion When the action executes, the associated action runs to completion and then repeats. This action is reversible; it creates a new action that is the reverse of the specified action and then repeats it forever. note: The action to be repeated must have a non-instantaneous duration.

## See Also

### Chaining Actions

- [group(_:)](spritekit/skaction/group(_:).md)
- [sequence(_:)](spritekit/skaction/sequence(_:).md)
- [repeat(_:count:)](spritekit/skaction/repeat(_:count:).md)
