requestAuthorization(_:)
Requests the user’s permission, if needed, to access the photo library.
Declaration
class func requestAuthorization(_ handler: @escaping (PHAuthorizationStatus) -> Void)Parameters
- handler:
A block Photos calls upon determining your app’s authorization to access the photo library.
The block takes a single parameter:
- status
The current authorization status.