Instance Property

normalizedCropRect

A rectangle for requesting a cropped version of the original image.

Declaration

var normalizedCropRect: CGRect { get set }

Discussion

To request a cropped image, specify the crop rectangle in a unit coordinate space relative to the image. In this coordinate system, the point {0.0,0.0} refers to the upper left corner of the image, and the point {1.0,1.0} refers to the opposite corner regardless of the image’s aspect ratio.

This property defaults to CGRectZero, which specifies no cropping.

If you specify a crop rectangle, you must also specify the PHImageRequestOptionsResizeMode.exact option for the resizeMode property.

See Also

Specifying Image Request Options

var version: PHImageRequestOptionsVersion

The version of the image to be requested.

enum PHImageRequestOptionsVersion

Options for requesting an image asset with or without adjustments, used by the version property.

var deliveryMode: PHImageRequestOptionsDeliveryMode

The requested image quality and delivery priority.

enum PHImageRequestOptionsDeliveryMode

Options for delivering requested image data, used by the deliveryMode property.

var resizeMode: PHImageRequestOptionsResizeMode

A mode that specifies how to resize the requested image.

enum PHImageRequestOptionsResizeMode

Options for how to resize the requested image to fit a target size, used by the resizeMode property.