PHPickerViewController

PHPickerViewController

PHPickerViewController Class of PhotosUI A view controller that provides the user interface for choosing assets from the photo library.

class PHPickerViewController

Overview

The PHPickerViewController class is an alternative to //com.apple.documentation/documentation/UIKit/UIImagePickerController. PHPickerViewController improves stability and reliability, and includes several benefits to developers and users, such as the following:

  • Deferred image loading and recovery UI
  • Reliable handling of large and complex assets, like RAW and panoramic images
  • User-selectable assets that aren’t available for //com.apple.documentation/documentation/UIKit/UIImagePickerController
  • Configuration of the picker to display only Live Photos
  • Availability of `doc://com.apple.photokit/documentation/Photos/PHLivePhoto` objects without library access
  • Stricter validations against invalid inputs