---
title: TweenMode
framework: realitykit
role: symbol
role_heading: Enumeration
path: realitykit/tweenmode
---

# TweenMode

Options that determine whether an animation switches between frames gradually or abruptly.

## Declaration

```swift
enum TweenMode
```

## Overview

Overview This enumeration declares the options for a sampled animation’s tweenMode. The gradual or abrupt change, or interpolation, refers to the visual behavior that occurs between adjacent values in a sampled animation’s frames.

## Topics

### Choosing a mode between frames

- [TweenMode.hold](realitykit/tweenmode/hold.md)
- [TweenMode.linear](realitykit/tweenmode/linear.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)

## See Also

### Animation definitions

- [SampledAnimation](realitykit/sampledanimation.md)
- [FromToByAnimation](realitykit/fromtobyanimation.md)
- [AnimationTimingFunction](realitykit/animationtimingfunction.md)
- [AnimationView](realitykit/animationview.md)
- [OrbitAnimation](realitykit/orbitanimation.md)
- [AnimationDefinition](realitykit/animationdefinition.md)
- [AnimationFillMode](realitykit/animationfillmode.md)
- [AnimationGroup](realitykit/animationgroup.md)
- [AnimationHandoffType](realitykit/animationhandofftype.md)
