---
title: "subscript(_:)"
framework: realitykit
role: symbol
role_heading: Instance Subscript
path: "realitykit/animationlibrarycomponent/animationcollection/subscript(_:)"
---

# subscript(_:)

Accesses animations in the collection within an index range.

## Declaration

```swift
subscript(bounds: Range<AnimationLibraryComponent.AnimationCollection.Index>) -> AnimationLibraryComponent.AnimationCollection.SubSequence { get }
```

## Parameters

- `bounds`: A range of indices to look up.

## Return Value

Return Value A subsequence of animation resources in the range of bounds.
