One Logo Pool Ball
SwiftUI · IOS API REFERENCE

DialogSeverity

struct · iOS 17.0+ · SDK 27.1

struct DialogSeverity

The severity of an alert or confirmation dialog. 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.

Members (3)

get · iOS 17.0+

critical

TypeScript
static get critical(): DialogSeverity
Swift declaration
static let critical: DialogSeverity

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. On macOS, a dialog with critical severity will display a large caution symbol with the app icon as an overlay.

get · iOS 17.0+

standard

TypeScript
static get standard(): DialogSeverity
Swift declaration
static let standard: DialogSeverity

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

get · iOS 17.0+

automatic

TypeScript
static get automatic(): DialogSeverity
Swift declaration
static let automatic: DialogSeverity

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

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →