authorizationStatus(for:)
authorizationStatus(for:)
authorizationStatus(for:) Type Method of PHPhotoLibrary Returns the app’s authorization to access the user’s photo library for the specified access level.
class func authorizationStatus(for accessLevel: PHAccessLevel) -> PHAuthorizationStatusParameters
accessLevel
The access level for which to determine the app’s authorization status.
Return Value
The app’s authorization status.
Discussion
For more information about accessing the user’s Photos library, see //com.apple.photokit/documentation/PhotoKit/delivering an enhanced privacy experience in your photos app.