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
| Name | Type | Default | Description |
|---|---|---|---|
| isPresented | Binding<Bool> | — | Controls sheet visibility. |
| content | @ViewBuilder () -> SheetContent | — | Content displayed inside the sheet. |