<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/EntityCollection/append(contentsOf:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation16EntityCollectionP6append10contentsOfyqd___tSTRd__AA0C0C7ElementRcd__lF"
  },
  "title" : "append(contentsOf:)"
}
-->

# append(contentsOf:)

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

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

## Parameters

`sequence`

The entities to add to the collection.

## Discussion> Note: This operation can invalidate the index order of any extant entities.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)