Global Variable


A key whose value is a unique identifier for the image request.


let PHImageResultRequestIDKey: String


This key provides information about an image loading result in the resultHandler block for methods listed in Requesting Images. The corresponding value is an NSNumber object containing an integer value.This identifier matches that returned when making a request. You can use it with the cancelImageRequest(_:) method to cancel requests with pending results that are no longer needed.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software