Modifiers
presentationBackground
Sets the background of a sheet presentation. Paints the entire sheet chrome including the drag-indicator zone and home-indicator safe-area inset, which a regular background() modifier cannot reach.
presentationBackground(color)
iOS 16.4+
| Parameter | Type | Description |
|---|---|---|
color | string | The background color (hex string). For example, #FF0000. |
Sets the background of a sheet presentation. Paints the entire sheet chrome including the drag-indicator zone and home-indicator safe-area inset, which a regular background() modifier cannot reach.
Returns: ModifierConfig
See: Official SwiftUI documentation.
Works with
Sources
The original Expo docs for this page:
- presentationBackground (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)