I have a view with 2 UIImageViews and 2 buttons in order to select 2 different pictures with UIImagePickerViewController. It actually works perfect but
UIImageViews
UIImagePickerViewController
in didFinishPickingMediaWithInfo instead of
didFinishPickingMediaWithInfo
let pickedImage = info[UIImagePickerControllerOriginalImage] as? UIImage
use
let pickedImage = info[UIImagePickerControllerEditedImage] as? UIImage
Update Swift 5.2
let pickedImage = info[UIImagePickerController.InfoKey.editedImage]