Docs
Components/Layout/Sheet

Sheet

A bottom sheet modal with drag indicator and detents.

s0 add sheet

Usage

@State private var showSheet = false

Button("Open Sheet") { showSheet = true }
    .s0Sheet(isPresented: $showSheet) {
        Text("Sheet content")
    }

Parameters

NameTypeDefaultDescription
isPresentedBinding<Bool>Controls sheet visibility.
content@ViewBuilder () -> SheetContentContent displayed inside the sheet.