Hi! I get this error when I complete writing chapter 20 and run it.
Sucessfully found 44 photos.
Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
2019-08-23 14:41:37.907047+0900 Photorama[695:38793] Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
and I get remark on self .imageView.image = image.
It looks like source data includes nil image. Below code included in PhotosViewController.swift
func updateImageView(for photo: Photo) {
store.fetchImage(for: photo) {
(imageResult) -> Void in
switch imageResult {
case let .success(image):
***self .imageView.image = image***
case let .failure(error):
print("Error downloading image: \(error)")
}
How I could solve this error?