A very Simple Image Picker that handles All the permissions of user like denied , allowed , restricted
Download the project and add the IAImagePickerViewController file to your Project
let imagePicker = IAImagePickerViewController.sharedInstance
imagePicker.delegate = self
imagePicker.presentIAImagePickerController(fromViewController: self)
when user select the image this function will be called mediaInfo contain image url , edited image and other information
func didfinishPickingMediaInfo(mediaInfo: [String : Any], pickedImage: UIImage?) { }