---
title: "repeat(count:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/animationresource/repeat(count:)"
---

# repeat(count:)

Creates an animation that repeats the specified number of times.

## Declaration

```swift
@MainActor @preconcurrency func `repeat`(count: Int) -> AnimationResource
```

## Parameters

- `count`: The number of animation repetitions.

## Return Value

Return Value A repeating copy of the calling animation resource.

## See Also

### Creating an animation resource

- [generate(with:)](realitykit/animationresource/generate(with:).md)
- [sequence(with:)](realitykit/animationresource/sequence(with:).md)
- [group(with:)](realitykit/animationresource/group(with:).md)
- [repeat(duration:)](realitykit/animationresource/repeat(duration:).md)
