---
title: NSAlert.Style.warning
framework: appkit
role: symbol
role_heading: Case
path: appkit/nsalert/style/warning
---

# NSAlert.Style.warning

An alert style to warn someone about a current or impending event.

## Declaration

```swift
case warning
```

## Discussion

Discussion Use this style of alert when the alert’s content is more severe than NSAlert.Style.informational but less severe than NSAlert.Style.critical. This is the default alert style.

## See Also

### Enumeration Cases

- [NSAlert.Style.critical](appkit/nsalert/style/critical.md)
- [NSAlert.Style.informational](appkit/nsalert/style/informational.md)
