iOS 14, even if user limiting the images exposed to the app, PHFetchResult will return the count of all images

In iOS 14 Beta, when the user is limiting the amount of images that are exposed to the app (lets say 10 images out of 50), PHFetchResult will return count of 50 instead of 10.




Edit: This seems to be happening only in the simulator, I cannot repro it on a device running iOS 14 Beta 7

I've been experiencing the same Xcode 12 beta 6

Following code returns all assets instead just the ones I've whitelisted.

Code Block swift
let fetchOptions = PHFetchOptions()
fetchOptions.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: true)]
let cameraRollFetchResult = PHAsset.fetchAssets(with: fetchOptions)


iOS 14, even if user limiting the images exposed to the app, PHFetchResult will return the count of all images
 
 
Q