I am trying to use the "convertFromUIImagePickerControllerInfoKeyDictionary" and "convertFromUIImagePickerControllerInfoKey" identifiers in xcode 11.3.1. I am getting errors for unresolved identifiers for both

I am trying to use the "convertFromUIImagePickerControllerInfoKeyDictionary" and "convertFromUIImagePickerControllerInfoKey" identifiers in xcode 11.3.1. I am getting errors for unresolved identifiers for both.

This is the code

Code Block
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
let info = convertFromUIImagePickerControllerInfoKeyDictionary(info)
avaImg.image = info[convertFromUIImagePickerControllerInfoKey(UIImagePickerController.InfoKey.editedImage)] as? UIImage
self.dismiss(animated: true, completion: nil)

Accepted Answer
As far as I remember, the two functions are generated by the Migrator of a specific version of Xcode, to convert old Swift code.

It is not needed any more. Remove both.
Code Block
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
avaImg.image = info[.editedImage] as? UIImage
self.dismiss(animated: true, completion: nil)
}


Thanks so much! I couldn't remember why I wrote it a while back.
I am trying to use the "convertFromUIImagePickerControllerInfoKeyDictionary" and "convertFromUIImagePickerControllerInfoKey" identifiers in xcode 11.3.1. I am getting errors for unresolved identifiers for both
 
 
Q