Image ModifieriOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+resizable(capInsets:resizingMode:) in SwiftUI
Declaration
compose().resizable({
capInsets?: SwiftUI.EdgeInsets,
resizingMode?: SwiftUI.ImageResizingMode,
})func resizable(
capInsets: EdgeInsets = EdgeInsets(),
resizingMode: Image.ResizingMode = .stretch
) -> ImageParameters
options.capInsetsSwiftUI.EdgeInsetsInset values that indicate a portion of the image that SwiftUI doesn't resize.
options.resizingModeSwiftUI.ImageResizingModeThe mode by which SwiftUI resizes the image.
Return value
An image, with the new resizing behavior set.
See also
More in Image modifiers.
- allowedDynamicRangeReturns a new image configured with the specified allowed dynamic range.
- antialiasedSpecifies whether SwiftUI applies antialiasing when rendering the image. allow antialiasing. Pass true to allow antialising, false otherwise.
- interpolationSpecifies the current level of quality for rendering an image that requires interpolation.
- renderingModeIndicates whether SwiftUI renders an image as-is, or by using a different mode.
- symbolColorRenderingModeSets the color rendering mode of the image.
- symbolRenderingModeSets the rendering mode for symbol images within this view.
- symbolVariableValueModeSets the variable value mode mode for symbol images within this view.