---
title: "subscript(_:)"
framework: modelio
role: symbol
role_heading: Instance Subscript
path: "modelio/mdlobject/subscript(_:)"
---

# subscript(_:)

## Declaration

```swift
subscript(key: Protocol) -> (any MDLComponent)? { get set }
```

## See Also

### Object Instancing

- [atPath(_:)](modelio/mdlobject/atpath(_:).md)
- [enumerateChildObjects(of:root:using:stopPointer:)](modelio/mdlobject/enumeratechildobjects(of:root:using:stoppointer:).md)
