---
title: "insert(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/meshmodelcollection/insert(_:)"
---

# insert(_:)

Add a new model to the container. Returns true if added. Returns false if it already exists.

## Declaration

```swift
@discardableResult mutating func insert(_ model: MeshResource.Model) -> Bool
```

## See Also

### Using the collection

- [remove(id:)](realitykit/meshmodelcollection/remove(id:).md)
- [removeAll()](realitykit/meshmodelcollection/removeall().md)
- [update(_:)](realitykit/meshmodelcollection/update(_:).md)
- [subscript(_:)](realitykit/meshmodelcollection/subscript(_:).md)
