Комментарии:
Use of unresolved identifier 'UIPickerViewControllerEditedImage'
let choosenImage: UIImage = info[UIPickerViewControllerEditedImage] as! UIImage
How to fix this? I'm on Xcode 10
Solution I figured it out
Xcode 10 Swift 4
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any])
{
let chosenImage = info[UIImagePickerController.InfoKey.editedImage] as! UIImage
imageViewFood!.image = chosenImage
newFood.image = chosenImage
picker.dismiss(animated: true, completion: nil)
}