Fix for broken fade-effect when using the browser in a more layered application

This commit is contained in:
Kevin Rummler 2016-03-10 12:07:48 +01:00
parent 874f0bba98
commit 80958e7742
1 changed files with 3 additions and 3 deletions

View File

@ -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()
})