From 80958e77426186673cd7b331eba153dba7344ecd Mon Sep 17 00:00:00 2001 From: Kevin Rummler Date: Thu, 10 Mar 2016 12:07:48 +0100 Subject: [PATCH] Fix for broken fade-effect when using the browser in a more layered application --- SKPhotoBrowser/SKPhotoBrowser.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SKPhotoBrowser/SKPhotoBrowser.swift b/SKPhotoBrowser/SKPhotoBrowser.swift index 9d4b1e5..dc56dcf 100644 --- a/SKPhotoBrowser/SKPhotoBrowser.swift +++ b/SKPhotoBrowser/SKPhotoBrowser.swift @@ -699,7 +699,7 @@ public class SKPhotoBrowser: UIViewController, UIScrollViewDelegate { // MARK: - perform animation public func performPresentAnimation() { - view.alpha = 0.0 + view.hidden = true pagingScrollView.alpha = 0.0 let fadeView = UIView(frame: CGRect(x: 0, y: 0, width: screenWidth, height: screenHeight)) @@ -759,7 +759,7 @@ public class SKPhotoBrowser: UIViewController, UIScrollViewDelegate { } }, completion: { (Bool) -> Void in - self.view.alpha = 1.0 + self.view.hidden = false self.pagingScrollView.alpha = 1.0 self.resizableImageView.alpha = 0.0 fadeView.removeFromSuperview() @@ -787,7 +787,7 @@ public class SKPhotoBrowser: UIViewController, UIScrollViewDelegate { } }, completion: { (Bool) -> Void in - self.view.alpha = 1.0 + self.view.hidden = false self.pagingScrollView.alpha = 1.0 fadeView.removeFromSuperview() })