PHPhotoLibraryAvailabilityObserver
A protocol to adopt to have the system notify your app when the availability of a photo library changes.
Declaration
protocol PHPhotoLibraryAvailabilityObserver : NSObjectProtocolOverview
Observing changes to the photo library’s availability is primarily of concern with Mac apps created using macOS and Mac Catalyst, where the library may reside on an external drive or in cloud storage.