---
title: alertStyle
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsalert/alertstyle
---

# alertStyle

Indicates the alert’s severity level.

## Declaration

```swift
var alertStyle: NSAlert.Style { get set }
```

## Discussion

Discussion See the NSAlert.Style enumeration for the list of alert style constants.

## See Also

### Configuring Alerts

- [layout()](appkit/nsalert/layout().md)
- [accessoryView](appkit/nsalert/accessoryview.md)
- [showsHelp](appkit/nsalert/showshelp.md)
- [helpAnchor](appkit/nsalert/helpanchor.md)
- [delegate](appkit/nsalert/delegate.md)
