Esri / data-collection-ios

Mobile data collection app using the iOS Runtime SDK.
https://developers.arcgis.com/
Apache License 2.0
25 stars 26 forks source link

Support iOS 14 PHPickerViewController #282

Closed esreli closed 3 years ago

esreli commented 3 years ago

This PR introduces support for the iOS 14 PHPickerViewController. Summary of work:

Note, a user does not have to grant access to the PHPhotoLibrary in order to use PHPickerViewController. As such, no device authorization request is issued.

esreli commented 3 years ago

I'm surprised user permission isn't needed for the photo picker, but Ok.

Looks good to me.

It took me a bit to wrap my head around as well. I think the idea is that because the content is derived from an item provider, we are programmatically closed off to the directory file system that would allow us to scour all of the user's photos.