What is the intended purpose of the new PHPhotoLibraryPersistentChangesObserver?
I currently use PHPhotoLibraryChangeObserver as a trigger, then call fetchPersistentChanges(since:). What behavior or guarantees differ when using PHPhotoLibraryPersistentChangesObserver instead?
Thanks!
Hi,
PHPhotoLibraryPersistentChangesObserver and register(_ observer: any PHPhotoLibraryPersistentChangesObserver) are intended for lightweight notifications when you are working with persistent history and a PHChange is not needed from PHPhotoLibraryChangeObserver. It is also intended to avoid polling fetchPersistentChanges(since:).
Some documentation is available on the register(_:) method:
https://developer.apple.com/documentation/photos/phphotolibrary/register(_:)-7lhue