---
title: "init(animations:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/animationlibrarycomponent/init(animations:)"
---

# init(animations:)

Creates an animation library from a dictionary that associates an animation’s data with its name.

## Declaration

```swift
init(animations: [String : AnimationResource])
```

## Parameters

- `animations`: A dictionary of animation resources that you key by name.

## See Also

### Creating an animation library component

- [init()](realitykit/animationlibrarycomponent/init().md)
- [init(dictionaryLiteral:)](realitykit/animationlibrarycomponent/init(dictionaryliteral:).md)
