         }
     }
     
+    func checkCameraRoll (){
+        PHPhotoLibrary.requestAuthorization { status in
+            Async.main{
+                switch status {
+                case .Authorized:
+                    self.showImagePickerWithSourceType(.PhotoLibrary)
+                case .Restricted:
+                    self.showAlertActionForType(.PhotoLibrary)
+                case .Denied:
+                    self.showAlertActionForType(.PhotoLibrary)
+                default:
+                    break
+                }
+            }
+        }
+    }
+    
     func checkCamera() {
         let authStatus = AVCaptureDevice.authorizationStatusForMediaType(AVMediaTypeVideo)
         switch authStatus {


import UIKit
import AVFoundation

class LoadImageCollectionViewCell: CircleImageCollectionViewCell, UIImagePickerControllerDelegate, UINavigationControllerDelegate {


    func alertPromptToAllowCameraAccessViaSetting() {
        if AVCaptureDevice.devicesWithMediaType(AVMediaTypeVideo).count > 0 {
            AVCaptureDevice.requestAccessForMediaType(AVMediaTypeVideo) { granted in
                Async.main{
                    self.checkCamera()
                }
            }
