<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DialogSeverity",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI14DialogSeverityV"
  },
  "title" : "DialogSeverity"
}
-->

# DialogSeverity

The severity of an alert or confirmation dialog.

```
struct DialogSeverity
```

## Overview

You can use dialog severity to indicate that people need to take extra
care when interacting with the dialog, like when an action taken from
the dialog permanently deletes data.

## Topics

### Getting severities

[`static let automatic: DialogSeverity`](/documentation/SwiftUI/DialogSeverity/automatic)

The default dialog severity. Alerts that present an error will use `.critical`
and all others will use `.standard`.

[`static let standard: DialogSeverity`](/documentation/SwiftUI/DialogSeverity/standard)

A severity that indicates the dialog is being displayed for the purpose
of presenting information to the user.

[`static let critical: DialogSeverity`](/documentation/SwiftUI/DialogSeverity/critical)

A severity that indicates extra attention should be given to the dialog,
for example when unexpected data loss may occur as a result of the
action taken.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)