Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error - Cannot subscript a value of type '[UIImagePickerController.InfoKey : Any]' with an index of type 'String' #2

Open
alelordelo opened this issue Jun 12, 2018 · 1 comment

Comments

@alelordelo
Copy link

Im getting the error bellow when build on iOS 12 beta, Xcode 10

Cannot subscript a value of type '[UIImagePickerController.InfoKey : Any]' with an index of type 'String'

Any clue what could be wrong?

@alelordelo
Copy link
Author

On this line of code...

let editedImage = info[convertFromUIImagePickerControllerInfoKey(UIImagePickerController.InfoKey.editedImage)] as? UIImage
guard let image = editedImage, let ciImage = CIImage(image: image) else {
  print("Can't analyze selected photo")
  return
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant