Skip to content

Commit

Permalink
Demo: 'UIImagePickerControllerOriginalImage' has been renamed to 'UII…
Browse files Browse the repository at this point in the history
…magePickerController.InfoKey.originalImage'

refs artemkrachulov#41 artemkrachulov#18
  • Loading branch information
ykws committed Jan 18, 2022
1 parent 1907bf9 commit a92a3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AKImageCropperViewExample/HomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a92a3e6

Please sign in to comment.