PHPhotoLibraryChangeObserver no longer includes deleted photos in the removed objects

Number:rdar://FB9928598 Date Originated:25/2/2022
Status:Open Resolved:
Product:PhotoKit Product Version:iOS 14
Classification:Incorrect/Unexpected Behavior Reproducible:Yes
Hi, I have an app that allows deletion of photos. It uses `photoLibraryDidChange(_ changeInstance: PHChange)` to be notified of changes to the asset collection after deletion has occurred, as documented here:

My app has been around for a few years now. I have noticed an issue on iOS 14 and iOS 15, but still works on iOS 12.

Specifically, the response in fetchResultAfterChanges no longer includes deleted objects.

Considering a photo asset collection of 4 photos, and 1 is deleted.

In iOS 12, after deleting, the change details has 3 photos in the fetchResultAfterChanges and 1 item in the removedObjects.
In iOS 14 and 15, after deleting, the change details has 4 photos in the fetchResultAfterChanges and 0 items in the removedObjects.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!