Instance Method


Tells your observer that a set of changes has occurred in the Photos library.



func photoLibraryDidChange(_ changeInstance: PHChange)



An object representing the changes.


Use the provided PHChange object to find out which, if any, of the albums or collections you’re interested in have changed and get detailed change information. Call the change object’s changeDetails(for:) method to get information about changes to an asset’s contents or metadata properties or about a collection’s metadata properties. Call the change object’s changeDetails(for:) to get information about changes to a collection’s list of members (or to any other fetch result).

Photos calls this method on an arbitrary queue. If you need to update your app’s UI as a result of the change, dispatch to the main queue.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software