Skip to content

Sheet - iOS ​

A sheet presents related content or a focused task over the current screen.

iOSreleased

iOS ​

Syntax ​

swift
.warpSheetStyle(
    _ style: Warp.SheetStyle = .medium,
    dragIndicator: Visibility = .visible,
    background: Warp.SheetBackground = .automatic
)
swift
// Warp.SheetStyle
.medium               // Half-height sheet with medium and large detents.
.fullScreen           // Full-height sheet with the large detent only.

// Warp.SheetBackground
.automatic            // Liquid Glass where iOS 26 draws it, surfaceElevated100 where the sheet is always opaque.
.solid                // Opaque surfaceElevated100 on every OS version.
.color(Color)         // A custom background colour.
.none                 // No background applied. The content styles its own.

Usage ​

Apply the modifier to the root content inside the .sheet closure:

swift
.sheet(isPresented: $showSheet) {
    NavigationStack {
        MyContentView()
            .navigationTitle("Title")
    }
    .warpSheetStyle(.medium)
}

A full-height sheet with a solid background and no drag indicator:

swift
.sheet(isPresented: $showSheet) {
    NavigationStack {
        MyContentView()
    }
    .warpSheetStyle(.fullScreen, dragIndicator: .hidden, background: .solid)
}

On iOS 26, dragging a .medium sheet to full height makes it opaque in the system colour, not the Warp token. Pass background: .solid if the sheet must stay on-brand at every height.

Navigation bar styling is separate. Apply it to the content inside the NavigationStack, not to the sheet root.

Parameters ​

NameTypeDefaultDescription
styleWarp.SheetStyle.medium.medium allows medium and large detents. .fullScreen allows the large detent only.
dragIndicatorVisibility.visibleVisibility of the grabber only. It does not prevent dismissal. Use .interactiveDismissDisabled() to block swipe-to-dismiss.
backgroundWarp.SheetBackground.automaticBackground treatment: .automatic, .solid, .color(Color) or .none.

Questions? ​

Feel free to ask any questions on usage in the Warp DS Slack channel: #warp-design-system