I am working with images for the first time and I have been able to select an image and display it on the page. My question is how can I get the name of the image selected ? I been searching around but have not been able to find it . This code below fires every time you select an image
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])
{
photoImageView.image = info[UIImagePickerControllerOriginalImage] as? UIImage
self.dismiss(animated: false, completion: nil)
let FileName = " Image Name of selected file"
}
where the photoImageView is
var photoImageView = UIImageView(frame: CGRect(x: 82,y: 300,width: 100,height: 100))
a small ImageView that displays the selected image, I would like to get the FileName now any suggestions would be great