- iOS 8+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 10.0+
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.