in iOS 14 beta, is there a way to check if the app has permissions to load a PHAsset
image before trying to load it with PHImageManager.requestImage?
This is for PHAuthorizationStatus.limited
- when I fetch all assets in a PHAssetCollection
, it returns those without permissions as well. I see an error object only when I try to load the image itself with PHImageManager.requestImage
in the returned info object.
EDIT:
It turns out that this is a problem only on simulator. When I ran the app on a real device with iOS 14 beta, the PHAssetCollection
fetch returned only those PHAssets
that the user has granted access to.