Returns a new version of the image with the specified cap insets and options.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The values to use for the cap insets.
The mode with which the interior of the image is resized.
A new image object with the specified cap insets and resizing mode.
This method is exactly the same as its counterpart
resizable 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 resizing mode.