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

# copy(into:)

Copies the keys and values of the dictionary to a different dictionary.

## Declaration

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

## Parameters

- `destination`: The dictionary to copy the keys and values into.

## See Also

### Creating a dictionary

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