diff --git a/AKImageCropperViewExample/HomeViewController.swift b/AKImageCropperViewExample/HomeViewController.swift index d34ac3e..397dd75 100644 --- a/AKImageCropperViewExample/HomeViewController.swift +++ b/AKImageCropperViewExample/HomeViewController.swift @@ -42,7 +42,7 @@ extension HomeViewController: UIImagePickerControllerDelegate, UINavigationContr func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { - if let pickedImage = info[UIImagePickerControllerOriginalImage.rawValue] as? UIImage { + if let pickedImage = info[UIImagePickerController.InfoKey.originalImage.rawValue] as? UIImage { let cropperViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "cropperViewController") as! CropperViewController cropperViewController.image = pickedImage