hasAction
A Boolean value that controls whether the notification shows or hides the alert action.
Declaration
var hasAction: Bool { get set }Discussion
Assign false to this property to hide the alert button or slider. (This effect requires alertBody to be non-nil.) The default value is true.