<!--
{
  "documentType" : "article",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/PhotoKit/observing-changes-in-the-photo-library",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Observing Changes in the Photo Library"
}
-->

# Observing Changes in the Photo Library

Register an observer to be notified of changes to the photo library.

## Discussion

To be notified of changes to the photo library, use the [`register(_:)`](/documentation/Photos/PHPhotoLibrary/register(_:)-6y3b9) method to designate an observer object. Whenever you use a fetch method, such as [`fetchAssets(with:)`](/documentation/Photos/PHAsset/fetchAssets(with:)), to retrieve assets or collections, Photos automatically registers your interest in observing changes to those items. After you perform a fetch, Photos sends messages to your observer through the [`PHPhotoLibraryChangeObserver`](/documentation/Photos/PHPhotoLibraryChangeObserver) protocol whenever the items in the resulting fetch request change. For example, you’ll get notified when changes add items, remove items, or reorder the list of items in the fetch result. Update your user interface based on the details you receive from [`PHChange`](/documentation/Photos/PHChange) objects.

Use the shared [`PHPhotoLibrary`](/documentation/Photos/PHPhotoLibrary) object to register a change handler for the assets and collections you fetch. Photos tells your app whenever another app or device changes the content or metadata of an asset or the list of assets in a collection. [`PHChange`](/documentation/Photos/PHChange) objects provide information about object state before and after each change with semantics that make it easy to update a collection view or similar interface.

For information about handling changes, see the [`PHPhotoLibraryChangeObserver`](/documentation/Photos/PHPhotoLibraryChangeObserver) protocol.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)