<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/XPCDictionary/reply(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "s:3XPC13XPCDictionaryV5replyyyACF"
  },
  "title" : "reply(_:)"
}
-->

# reply(_:)

Sends a reply to the originator of the dictionary.

```
func reply(_ reply: XPCDictionary)
```

## Parameters

`reply`

A dictionary to send back to the client that sent the receiving dictionary.

## Discussion

When a listener receives an [`XPCDictionary`](/documentation/XPC/XPCDictionary), the dictionary keeps track of the client that sent it. This function sends the specified `reply` dictionary back to the originating client.

Don’t call this function more than once on a single dictionary, and don’t call it on a dictionary that wasn’t received from a client. Calling it more than once or sending a reply using a dictionary that wasn’t received triggers an API misuse crash.

---

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)