<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/AnimationResource/group(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation17AnimationResourceC5group4withACSayACG_tKFZ"
  },
  "title" : "group(with:)"
}
-->

# group(with:)

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

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

## Parameters

`resources`

The collection of animation resources to play back.

## Return Value

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

---

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)