---
title: "init(rawValue:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/animationfillmode/init(rawvalue:)"
---

# init(rawValue:)

Creates a fill mode from its backing data type.

## Declaration

```swift
init(rawValue: Int8)
```

## Parameters

- `rawValue`: The backing data value for the fill mode.

## Discussion

Discussion Use this initializer to unarchive a fill mode from data: let rawValue = unarchiveNextInt8(from: data) // Pseudo code. let fillMode = AnimationFillMode(rawValue: rawValue)

## See Also

### Choosing a fill mode

- [none](realitykit/animationfillmode/none.md)
- [forwards](realitykit/animationfillmode/forwards.md)
- [backwards](realitykit/animationfillmode/backwards.md)
- [both](realitykit/animationfillmode/both.md)
