ImageResizingMode
The modes that SwiftUI uses to resize an image to fit within its containing view.
Declaration
type ImageResizingMode = 'stretch' | 'tile';enum ResizingModePass a literal, or build one with SwiftUI.ImageResizingMode from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'stretch'SwiftUI.ImageResizingMode.stretchA mode to enlarge or reduce the size of an image so that it fills the available space.
'tile'SwiftUI.ImageResizingMode.tileA mode to repeat the image at its original size, as many times as necessary to fill the available space.
Used by
See also
More in Other values.
- AxisThe horizontal or vertical dimension in a 2D coordinate system.
- AxisSetAn efficient set of axes.
- ButtonRoleA value that describes the purpose of a button.
- CapsuleA capsule shape aligned inside the frame of the view containing it.
- CircleA circle centered on the frame of the view containing it.
- ConcentricRectangleA shape whose corners you configure, individually or uniformly, to be squared, rounded, or concentric relative to a container shape's corners.
- ContentMarginGuideA guide for resolving the content margins for a view.
- ContentMarginPlacementThe placement of margins.
- ContentModeConstants that define how a view's content fills the available space.
- DatePickerComponents
- DatePickerComponents2The date and time components that a date picker shows.
- DeviceHingeA type encapsulating the state of a single hinge.