---
title: both
framework: realitykit
role: symbol
role_heading: Type Property
path: realitykit/animationfillmode/both
---

# both

An option that displays the animation’s initial frame or final frame when playback occurs outside of the normal duration.

## Declaration

```swift
static let both: AnimationFillMode
```

## Discussion

Discussion For example, if you extend a hand-waving animation’s duration by one second in both directions by setting trimStart to -1.0, and trimEnd to duration + 1.0, a fillMode of both determines that the hand holds its initial appearance for one second before continuing to wave. Then, the animation freezes on its final hand-waving frame for one second before disappearing.

## See Also

### Choosing a fill mode

- [none](realitykit/animationfillmode/none.md)
- [forwards](realitykit/animationfillmode/forwards.md)
- [backwards](realitykit/animationfillmode/backwards.md)
- [init(rawValue:)](realitykit/animationfillmode/init(rawvalue:).md)
