func updateImageView(for photo: Photo) {
store.fetchImage(for: photo) {
(imageResult) → Void in
switch imageResult {
case let .success(image):
self.imageView.image = image **_
`
cannot assign a value of type [UIImage] to value type ‘UIimage’
`
_**
case let .failure(error):
print(“Error downloading image: (error)”)
}
}
}