diff --git a/Sources/ImageViewerController.swift b/Sources/ImageViewerController.swift index e066fd0..370bfa6 100644 --- a/Sources/ImageViewerController.swift +++ b/Sources/ImageViewerController.swift @@ -96,8 +96,12 @@ class ImageViewerController:UIViewController, UIGestureRecognizerDelegate { placeholderImage: placeholder ?? sourceView?.image, options: [], progress: nil) {[weak self] (img, err, type, url) in - self?.imageView.layoutIfNeeded() - } + DispatchQueue.main.async { + UIView.performWithoutAnimation { + self?.imageView.layoutIfNeeded() + } + } + } default: break }