Returns information about your app’s authorization to access the user’s photo library.
- iOS 8+
- macOS 10.13+
- Mac Catalyst 13.0+Beta
- tvOS 10+
The current authorization status. See
Accessing the photo library always requires explicit permission from the user. The first time your app uses
PHCollection methods to fetch content from the library, or uses one of the methods listed in Applying Changes to the Photo Library to request changes to library content, Photos automatically and asynchronously prompts the user to request authorization.
After the user grants permission, the system remembers the choice for future use in your app, but the user can change this choice at any time using the Settings app. If the user has denied your app photo library access, not yet responded to the permission prompt, or cannot grant access due to restrictions, any attempts to fetch photo library content will return empty
PHFetch objects, and any attempts to perform changes to the photo library will fail.