Skip to content

Commit

Permalink
Demo: Cannot convert value of type 'UIImagePickerController.InfoKey' …
Browse files Browse the repository at this point in the history
…to expected argument type 'String'

refs artemkrachulov#41 artemkrachulov#18
  • Loading branch information
ykws committed Jan 18, 2022
1 parent 5b7a92a commit 243733b
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] as? UIImage {
if let pickedImage = info[UIImagePickerControllerOriginalImage.rawValue] as? UIImage {

let cropperViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "cropperViewController") as! CropperViewController
cropperViewController.image = pickedImage
Expand Down

0 comments on commit 243733b

Please sign in to comment.