<!--
{
  "availability" : [
    "macOS: 10.9.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSUserNotification/hasReplyButton",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSUserNotification(py)hasReplyButton"
  },
  "title" : "hasReplyButton"
}
-->

# hasReplyButton

A Boolean value that specifies whether the notification displays a reply button.

```
var hasReplyButton: Bool { get set }
```

## Discussion

Set to <doc://com.apple.documentation/documentation/Swift/true> if the notification has a reply button. The default value is <doc://com.apple.documentation/documentation/Swift/false>. If this property and [`hasActionButton`](/documentation/Foundation/NSUserNotification/hasActionButton) are both <doc://com.apple.documentation/documentation/Swift/true>, the reply button is shown.

---

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)