Modifiers
resizable
Sets the mode by which SwiftUI resizes an image to fit its space.
resizable(capInsets, resizingMode)
| Parameter | Type | Description |
|---|---|---|
capInsets(optional) | { bottom: number, leading: number, top: number, trailing: number } | Inset values that indicate a portion of the image that SwiftUI doesn’t resize. |
resizingMode(optional) | 'stretch' | 'tile' | The mode by which SwiftUI resizes the image. |
Sets the mode by which SwiftUI resizes an image to fit its space.
Returns: ModifierConfig
See: Official SwiftUI documentation.
Works with
Sources
The original Expo docs for this page:
- resizable (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)