Select multiple photos from iPhone photo library [PHPickerViewController]

Picker that replaces UIImagePickerController (2020 release).

You can use

Multiple Selection

Search

Albums

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.

albums
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.
rockyshikoku@gmail.com

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

Twitter
Medium

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store