---
title: "group(with:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/animationresource/group(with:)"
---

# group(with:)

Creates an animation resource that simultaneously plays back a collection of animations.

## Declaration

```swift
@MainActor @preconcurrency static func group(with resources: [AnimationResource]) throws -> AnimationResource
```

## Parameters

- `resources`: The collection of animation resources to play back.

## Return Value

Return Value An animation resource that simultaneously plays back the argument collection of animations.

## See Also

### Creating an animation resource

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