<!--
{
  "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/AnimationGroup/init(group:name:repeatMode:fillMode:trimStart:trimEnd:trimDuration:offset:delay:speed:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation14AnimationGroupV5group4name10repeatMode04fillH09trimStart0J3End0J8Duration6offset5delay5speedACSayAA0C10Definition_pG_SSAA0c6RepeatH0OAA0c4FillH0VSdSgA2TS2dSftcfc"
  },
  "title" : "init(group:name:repeatMode:fillMode:trimStart:trimEnd:trimDuration:offset:delay:speed:)"
}
-->

# init(group:name:repeatMode:fillMode:trimStart:trimEnd:trimDuration:offset:delay:speed:)

Creates a collection of animations that play simultaneously.

```
init(group: [any AnimationDefinition], name: String = "", repeatMode: AnimationRepeatMode = .none, fillMode: AnimationFillMode = [], trimStart: TimeInterval? = nil, trimEnd: TimeInterval? = nil, trimDuration: TimeInterval? = nil, offset: TimeInterval = 0, delay: TimeInterval = 0, speed: Float = 1.0)
```

## Parameters

`group`

A collection of animations to run.

`name`

A textual name for the group.

`repeatMode`

An option that determines how the animations repeat.

`fillMode`

The playback behavior outside of the normal duration.

`trimStart`

The time, in seconds, at which the animations play.

`trimEnd`

The time, in seconds, at which the animations stop.

`trimDuration`

An optional duration that overrides the calculated duration.

`offset`

The time, in seconds, at which the animation begins within the duration.

`delay`

An amount of time that lapses before the animation plays.

`speed`

A factor that increases or decreases the animation’s rate of playback.

---

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)