diff --git a/CHANGELOG.md b/CHANGELOG.md index a931c10..4ea5dc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 3.0.2 + +Released on 9-2016 + +#### Fixed +- Issue with multiple actionButtonTitles #137 +- Impossible to zoom when resolution is 1024x768 #134 +- unexpectedly found nil while unwrapping an Optional value #133 + ## 3.0.1 Released on 9-2016 diff --git a/SKPhotoBrowser/SKPhotoBrowser.swift b/SKPhotoBrowser/SKPhotoBrowser.swift index ea4e4db..a891d85 100644 --- a/SKPhotoBrowser/SKPhotoBrowser.swift +++ b/SKPhotoBrowser/SKPhotoBrowser.swift @@ -25,7 +25,7 @@ public class SKPhotoBrowser: UIViewController { // tool for controls private var applicationWindow: UIWindow! - private var pagingScrollView: SKPagingScrollView! + private lazy var pagingScrollView: SKPagingScrollView = SKPagingScrollView(frame: self.view.frame, browser: self) var backgroundView: UIView! var initialPageIndex: Int = 0 @@ -85,7 +85,6 @@ public class SKPhotoBrowser: UIViewController { } deinit { - pagingScrollView = nil NSNotificationCenter.defaultCenter().removeObserver(self) } @@ -531,7 +530,6 @@ private extension SKPhotoBrowser { backgroundView.alpha = 0.0 applicationWindow.addSubview(backgroundView) - pagingScrollView = SKPagingScrollView(frame: view.frame, browser: self) pagingScrollView.delegate = self view.addSubview(pagingScrollView)