---
title: hasActionButton
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsusernotification/hasactionbutton
---

# hasActionButton

A Boolean value that specifies whether the notification displays an action button.

## Declaration

```swift
var hasActionButton: Bool { get set }
```

## Discussion

Discussion Set to false if the notification has no action button. This is the case for notifications that are purely for information and have no user action. The default value is true.

## See Also

### Displayed Notification Buttons

- [actionButtonTitle](foundation/nsusernotification/actionbuttontitle.md)
- [otherButtonTitle](foundation/nsusernotification/otherbuttontitle.md)
- [hasReplyButton](foundation/nsusernotification/hasreplybutton.md)
