<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/AnimationHandoffType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20AnimationHandoffTypeV"
  },
  "title" : "AnimationHandoffType"
}
-->

# AnimationHandoffType

The type of handoff the play animation method performs between a current animation and a new animation.

```
struct AnimationHandoffType
```

## Topics

### Type Properties

[`static var compose: AnimationHandoffType`](/documentation/RealityKit/AnimationHandoffType/compose)

Adds the new animation to existing animations, and immediately starts the new animation.

[`static var `default`: AnimationHandoffType`](/documentation/RealityKit/AnimationHandoffType/default)

Provides the default behavior.

[`static var stop: AnimationHandoffType`](/documentation/RealityKit/AnimationHandoffType/stop)

Stops the specified animation.

### Type Methods

[`static func replace(applyToAllLayers: Bool) -> AnimationHandoffType`](/documentation/RealityKit/AnimationHandoffType/replace(applyToAllLayers:))

Keeps playing the current animation during the transition time and uses the value from that
animation as the blend value for the transition to the new animation.

[`static func snapshotAndReplace(applyToAllLayers: Bool) -> AnimationHandoffType`](/documentation/RealityKit/AnimationHandoffType/snapshotAndReplace(applyToAllLayers:))

Stops the current animation and uses the current value of that animation as the blend value for the transition to the new animation.

## Relationships

### Conforms To

[`Escapable`](/documentation/Swift/Escapable)

[`Copyable`](/documentation/Swift/Copyable)

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)