diff --git a/Demo/DemoListViewController.swift b/Demo/DemoListViewController.swift index 353bd5c..67e67d4 100644 --- a/Demo/DemoListViewController.swift +++ b/Demo/DemoListViewController.swift @@ -73,14 +73,15 @@ class DemoListViewController: UITableViewController, NohanaImagePickerController switch PHPhotoLibrary.authorizationStatus() { case .notDetermined: PHPhotoLibrary.requestAuthorization { status in - switch status { - case .authorized: - handler(true) - default: - handler(false) + DispatchQueue.main.async { + switch status { + case .authorized: + handler(true) + default: + handler(false) + } } } - case .restricted: handler(false) case .denied: