Select multiple photos from iPhone photo library [PHPickerViewController]

Dec 11, 2021

Picker that replaces UIImagePickerController (2020 release).

You can use

Multiple Selection



Multiple Selection

PHPicker settings and display

Import PhotosUI and let your class inherit PHPickerViewControllerDelegate.

Set PHPicker and display it.

Get media

You can get the media with the Delegate method.
The media is returned as an array of itemProviders.
The itemProvider can check if the class of the target media can be obtained by the
canLoadObject method, and the media data can be obtained by the loadObject method.

search cats

Sorry for Japanese Preview.This time my phone can’t search photos with English so..


I’m a freelance engineer.
Work consultation
Please feel free to contact us with a brief development description.

I am making an app that uses Core ML and ARKit.
We send machine learning / AR related information.