From f2acc9e7ad2b4a6f97ceb64476134ff761fddd65 Mon Sep 17 00:00:00 2001 From: leacode Date: Mon, 13 Apr 2020 18:13:40 +0800 Subject: [PATCH] Update ScrollView if there was a thumbnail image --- QuickPhotoViewer/PhotoViewController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/QuickPhotoViewer/PhotoViewController.swift b/QuickPhotoViewer/PhotoViewController.swift index a2081d3..2ffa87f 100644 --- a/QuickPhotoViewer/PhotoViewController.swift +++ b/QuickPhotoViewer/PhotoViewController.swift @@ -125,6 +125,10 @@ extension PhotoViewController { imageView.image = localImage self.updateScrollViewZoomScale() } else if let url = photo.url { + if let thumbnailImage = photo.thumbnailImage { + imageView.image = thumbnailImage + self.updateScrollViewZoomScale() + } downloadDelegate?.photoViewController(self, willStartDownloading: photo) let imageResource = ImageResource(downloadURL: url, cacheKey: url.cacheKey) imageView.kf.setImage(with: imageResource,