Detents (Half / Full)
iOS 16.0The core iOS 16 sheet API — snap points plus a visible grabber.
struct DetentSheet: View {
@State private var show = false
var body: some View {
Button("Open") { show = true }
.sheet(isPresented: $show) {
Text("Sheet content")
.presentationDetents([.medium, .large])
.presentationDragIndicator(.visible)
}
}
}