InceptionVisionDemo icon indicating copy to clipboard operation
InceptionVisionDemo copied to clipboard

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

Open alelordelo opened this issue 7 years ago • 1 comments

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 avatar Jun 12 '18 22:06 alelordelo

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
}

alelordelo avatar Jun 12 '18 22:06 alelordelo