Enumeration

UIImage.ResizingMode

Specifies the possible resizing modes for an image.

Declaration

enum ResizingMode : Int

Topics

Constants

case tile

The image is tiled when it is resized. In other words, the interior region of the original image will be repeated to fill in the interior region of the newly resized image.

case stretch

The image is stretched when it is resized. In other words, the interior region of the original image will be scaled to fill in the interior region of the newly resized imaged.

See Also

Image Attributes

var imageOrientation: UIImage.Orientation

The orientation of the receiver’s image.

enum UIImage.Orientation

A value describing the intended display orientation for an image.

var flipsForRightToLeftLayoutDirection: Bool

A Boolean value that indicates whether the image should flip in a right-to-left layout.

var resizingMode: UIImage.ResizingMode

The resizing mode of the image.

var duration: TimeInterval

Returns the time interval used to display an animated image.

var capInsets: UIEdgeInsets

The end-cap insets.

var alignmentRectInsets: UIEdgeInsets

The alignment metadata used to position the image during layout.

var traitCollection: UITraitCollection

Returns the trait collection that describes the image.