---
title: "append(contentsOf:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/entitycollection/append(contentsof:)"
---

# append(contentsOf:)

Adds the specified sequence of entities to the end of this collection, in order.

## Declaration

```swift
mutating func append<S>(contentsOf sequence: S) where S : Sequence, S.Element : Entity
```

## Parameters

- `sequence`: The entities to add to the collection.

## Discussion

Discussion note: This operation can invalidate the index order of any extant entities.
