---
title: "subscript(_:)"
framework: realitykit
role: symbol
role_heading: Instance Subscript
path: "realitykit/entity/observable-swift.struct/components-swift.struct/subscript(_:)"
---

# subscript(_:)

## Declaration

```swift
subscript<T>(componentType: T.Type) -> T? where T : _ImplicitlyAnimatableBuiltinComponent { get set }
```
