---
title: "append(copying:)"
framework: Swift
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "swift/uniquearray/append(copying:)-3aouw"
---

# append(copying:)

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

## Declaration

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

## Parameters

- `newElements`: A span whose contents to copy into the array.

## Discussion

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. note: O(newElements.count) when amortized over many invocations on the same array.
