- iOS 8+
- macOS 10.13+
- Mac Catalyst 13.0+Beta
- tvOS 10+
Explicit user permission is required for photo library access, but the user has not yet granted or denied such permission.
Your app is not authorized to access the photo library, and the user cannot grant such permission.
The user has explicitly denied your app access to the photo library.
The user has explicitly granted your app access to the photo library.
class func authorization
Status() -> PHAuthorization Status
Returns information about your app’s authorization to access the user’s photo library.
class func request
Authorization((PHAuthorization Status) -> Void)
Requests the user’s permission, if needed, to access the photo library.
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