---
title: "copy(into:)"
framework: xpc
role: symbol
role_heading: Instance Method
path: "xpc/xpcarray/copy(into:)"
---

# copy(into:)

Copies the elements of the array to a different array.

## Declaration

```swift
func copy(into destination: XPCArray)
```

## Parameters

- `destination`: The array to copy the elements into.

## See Also

### Creating an array

- [init()](xpc/xpcarray/init().md)
- [init(_:)](xpc/xpcarray/init(_:).md)
