self.imageView.image = image

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)”)
}
}
}

I’m guessing that you might have a typo in your ImageResult enum. Make sure the the associated value for success is UIImage (and not [UIImage], which is what I guess it might be typed at the moment).

enum ImageResult {
  case success(UIImage)
  case failure(Error)
}