---
title: speed
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/animationview/speed
---

# speed

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

## Declaration

```swift
var speed: Float { get set }
```

## Discussion

Discussion The default value is 1.0, which doesn’t alter the animation’s duration. A value of 2.0 indicates that the duration is half the underlying setting. A value of 0.5 indicates that the duration is twice the underlying setting. Negative values play the animation in reverse. This property doesn’t affect the animation’s delay.

## See Also

### Timing the animation

- [delay](realitykit/animationview/delay.md)
- [duration](realitykit/animationview/duration.md)
- [offset](realitykit/animationview/offset.md)
- [trimDuration](realitykit/animationview/trimduration.md)
- [trimStart](realitykit/animationview/trimstart.md)
- [trimEnd](realitykit/animationview/trimend.md)
