PHChange
A description of a change that occurred in the photo library.
Declaration
class PHChangeMentioned in
Overview
Photos provides PHChange objects to notify your app of changes to the assets and collections managed by the Photos app. To receive change information, adopt the PHPhotoLibraryChangeObserver protocol and register your observer with the shared PHPhotoLibrary object.
After Photos provides a change object, you use its methods to get a change details object. Call the changeDetailsForObject: or changeDetails(for:) method, passing an asset or collection object you’ve previously fetched or a fetch result containing several such objects. The resulting PHObjectChangeDetails or PHFetchResultChangeDetails object describes any changes that have happened to the object or fetch result since you last fetched it.