Build Error - Cannot subscript a value of type '[UIImagePickerController.InfoKey : Any]' with an index of type 'String'
alelordelo opened this issue · 1 comments
alelordelo commented
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 commented
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
}