<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/UniqueArray/append(copying:)-3aouw",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s11UniqueArrayV6append7copyingys4SpanVyxG_tF"
  },
  "title" : "append(copying:)"
}
-->

# append(copying:)

Copies the elements of a span to the end of this array.

```
mutating func append(copying newElements: Span<Element>)
```

## Parameters

`newElements`

A span whose contents to copy into the array.

## Discussion

If the array does not have sufficient capacity to hold enough elements,
then this reallocates the array’s storage to extend its capacity, using a
geometric growth rate.

> Complexity: O(`newElements.count`) when amortized over many
> invocations on the same array.

---

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)