Skip to content

Commit

Permalink
Fix allowed access photo permission status on iOS 14
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkRunWu committed Mar 31, 2021
1 parent 25833a5 commit 8d4ce61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Controller/ImagePickerController+Closure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ import Photos
if #available(iOS 14, *) {
PHPhotoLibrary.requestAuthorization(for: .readWrite) { (status) in
switch status {
case .authorized:
case .authorized,
.limited:
DispatchQueue.main.async(execute: authorized)
default:
break
Expand Down

0 comments on commit 8d4ce61

Please sign in to comment.