From 8d4ce61772d216e8e4482d4af208775485ad83b3 Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 31 Mar 2021 13:01:22 +0800 Subject: [PATCH] Fix allowed access photo permission status on iOS 14 --- Sources/Controller/ImagePickerController+Closure.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Controller/ImagePickerController+Closure.swift b/Sources/Controller/ImagePickerController+Closure.swift index 05a9a639..f5d21186 100644 --- a/Sources/Controller/ImagePickerController+Closure.swift +++ b/Sources/Controller/ImagePickerController+Closure.swift @@ -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