More stability
This commit is contained in:
parent
d9367496cc
commit
dd4e0a643d
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = "SKPhotoBrowser"
|
||||
s.version = "1.6.4"
|
||||
s.version = "1.6.5"
|
||||
s.summary = "Simple PhotoBrowser/Viewer inspired by facebook, twitter photo browsers written by swift2.0."
|
||||
s.homepage = "https://github.com/suzuki-0000/SKPhotoBrowser"
|
||||
s.license = { :type => "MIT", :file => "LICENSE" }
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ public class SKPhotoBrowser: UIViewController, UIScrollViewDelegate {
|
|||
pagingScrollView.frame = frameForPagingScrollView()
|
||||
pagingScrollView.contentSize = contentSizeForPagingScrollView()
|
||||
//If we open the SKPhotoBrowser from CollectionView not the first image, we have one element in visiblepages and we should to take 0 element from visibleindex but that we should to use frame we should use currentPageIndex for frame's functions.
|
||||
// TODO: - need to fix this bug
|
||||
// TODO: - need to fix this bug
|
||||
if visiblePages.count > 0 {
|
||||
let currentIndex = visiblePages.count - 1
|
||||
let page = visiblePages[currentIndex]
|
||||
|
|
|
|||
Loading…
Reference in New Issue