Skip to content

iOS components Overlays

stanceAlert()

Stable

Presents the system alert from a typed confirmation, with a destructive option.

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onalert
  • Kindmodifier

Preview

Rendered by the SwiftUI library, not drawn by hand.

stanceAlert() on iOS and iPadOSstanceAlert() on iOS and iPadOSstanceAlert() on iOS and iPadOS
stanceAlert(), Light appearance
Light
stanceAlert(), Dark appearance
Dark
stanceAlert(), High contrast appearance
High contrast

Usage

swift
Text("Screen").stanceAlert($confirmation) {}

Accessibility

  • System alert semantics and focus

On other platforms