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

# NSAlert.Style

The set of alert styles to style alerts in your app.

## Declaration

```swift
enum Style
```

## Overview

Overview Currently, there’s no visual difference between informational and warning alerts. You should only use the critical (or “caution”) alert style if warranted. For design guidance on alert styles, see Human Interface Guidelines > Alerts. The default alert style is NSAlert.Style.warning.

## Topics

### Enumeration Cases

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

### Initializers

- [init(rawValue:)](appkit/nsalert/style/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [NSApplication.ModalResponse](appkit/nsapplication/modalresponse.md)
