<!--
{
  "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(moving:)-71oaj",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s11UniqueArrayVsRi_zrlE6append6movingySryxG_tF"
  },
  "title" : "append(moving:)"
}
-->

# append(moving:)

Moves the elements of a buffer to the end of this array, leaving the
buffer uninitialized.

```
mutating func append(moving items: UnsafeMutableBufferPointer<Element>)
```

## Parameters

`items`

A fully initialized buffer whose contents to move into
the array.

## Discussion

If the array does not have sufficient capacity to hold all items in the
buffer, then this reallocates the array’s storage to grow its capacity,
using a geometric growth rate.

> Complexity: O(`count` + `items.count`)

---

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)