From 0d1a884b9bb73f55facca9a767494537bc515e4c Mon Sep 17 00:00:00 2001 From: Bogdan Matveev Date: Tue, 29 Mar 2016 00:33:06 +0300 Subject: [PATCH] fixed error while dismissing empty image --- SKPhotoBrowser/SKPhotoBrowser.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SKPhotoBrowser/SKPhotoBrowser.swift b/SKPhotoBrowser/SKPhotoBrowser.swift index ac0359d..d391094 100644 --- a/SKPhotoBrowser/SKPhotoBrowser.swift +++ b/SKPhotoBrowser/SKPhotoBrowser.swift @@ -877,7 +877,7 @@ public class SKPhotoBrowser: UIViewController, UIScrollViewDelegate { width: scrollFrame.width, height: scrollFrame.height) - resizableImageView.image = scrollView.photo?.underlyingImage.rotateImageByOrientation() ?? resizableImageView.image + resizableImageView.image = scrollView.photo?.underlyingImage?.rotateImageByOrientation() ?? resizableImageView.image resizableImageView.frame = frame resizableImageView.alpha = 1.0 resizableImageView.clipsToBounds = true