Modifiers
presentationDetents
Sets the available heights for a sheet presentation.
presentationDetents(detents, options)
iOS 16+
| Parameter | Type | Description |
|---|---|---|
detents | PresentationDetent[] | Array of detents the sheet can snap to. |
options(optional) | { onSelectionChange: (detent: PresentationDetent) => void, selection: PresentationDetent } | Optional settings for tracking the selected detent. |
Sets the available heights for a sheet presentation.
Returns: ModifierConfig
See: Official SwiftUI documentation.
Works with
Sources
The original Expo docs for this page:
- presentationDetents (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)