Feedback/DSBottomSheet
DSBottomSheet
feedbackiOS-native bottom sheet using presentationDetents, with a drag handle and configurable snap points.
iOS 17+
Purpose
Actions, filters, detail panels, and any content that should not cover the full screen.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| isPresentedreq | Binding<Bool> | — | Controls visibility. |
| detents | [PresentationDetent] | [.medium] | Snap heights. |
| showHandle | Bool | true | Shows the drag handle. |
| contentreq | ViewBuilder | — | Sheet content. |
Examples
Filter sheet
Filter options in a medium-height sheet.
swift
DSBottomSheet(isPresented: $showFilters, detents: [.medium, .large]) {
FilterOptionsView(filters: $activeFilters)
}