You need to tell compiler the type of item, so instead of casting info array to [AnyObject] type cast it to [[String:Any]].
if let imagesArray = info as? [[String:Any]] {
for item in imagesArray {
if let image = item[UIImagePickerControllerOriginalImage] as? UIImage {
//Access image instance
}
}
}
6
solved Ambiguous use of subscript compiler error