0

I use code for get list image

let options = PHFetchOptions()
options.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: false)]
options.predicate = NSPredicate(format: "mediaType == %d", PHAssetMediaType.image.rawValue)
return PHAsset.fetchAssets(with: options)

But in permission Limit in ios 14 this will get all image. enter image description here

Just get only limit photo.

1 Answers1

2

I had the same problem. It only occurs in the simulator. You can try it on a real device. It's probably a bug in the simulator.

sagaraya
  • 46
  • 2