Skip to content

iOS components Overlays

stanceSheet()

Stable

Presents the native sheet with a title bar, detents and themed content.

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onsheet, presentationDetents
  • Kindmodifier

Preview

Rendered by the SwiftUI library, not drawn by hand.

stanceSheet() on iOS and iPadOSstanceSheet() on iOS and iPadOSstanceSheet() on iOS and iPadOS
stanceSheet(), Light appearance
Light
stanceSheet(), Dark appearance
Dark
stanceSheet(), High contrast appearance
High contrast

Usage

swift
Text("Screen").stanceSheet("Rename template", isPresented: $isPresented) { Text("Form") }

Accessibility

  • System sheet gestures, grabber and focus handling

On other platforms