resizableImage(withCapInsets:resizingMode:)
Returns a new version of the image with the specified cap insets and options.
Declaration
func resizableImage(withCapInsets capInsets: UIEdgeInsets, resizingMode: UIImage.ResizingMode) -> UIImageParameters
- capInsets:
The values to use for the cap insets.
- resizingMode:
The mode with which the interior of the image is resized.
Return Value
A new image object with the specified cap insets and resizing mode.
Discussion
This method is exactly the same as its counterpart resizableImage(withCapInsets:) except that the resizing mode of the new image object can be explicitly declared. You should only call this method in place of its counterpart if you specifically want your image to be resized with the UIImage.ResizingMode.stretch resizing mode.
See Also
Changing the image attributes
withConfiguration(_:)applyingSymbolConfiguration(_:)imageFlippedForRightToLeftLayoutDirection()withHorizontallyFlippedOrientation()withRenderingMode(_:)withAlignmentRectInsets(_:)resizableImage(withCapInsets:)imageWithoutBaseline()withBaselineOffset(fromBottom:)UIImage.ConfigurationUIImage.SymbolConfiguration