Merge pull request #62 from alexsandersky/master

update for new swift style
This commit is contained in:
Alexsander Khitev 2016-03-23 22:49:15 +04:00
commit 6be05c875d
2 changed files with 2 additions and 23 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SKPhotoBrowser"
s.version = "1.7.3"
s.version = "1.7.4"
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" }

View File

@ -1031,28 +1031,7 @@ public class SKPhotoBrowser: UIViewController, UIScrollViewDelegate {
}
// this is a new style but it works very slow
// for index in 0...lastIndex {
// if isDisplayingPageForIndex(index) {
// continue
// }
//
// let page = SKZoomingScrollView(frame: view.frame, browser: self)
// page.frame = frameForPageAtIndex(index)
// page.tag = index + pageIndexTagOffset
// page.photo = photoAtIndex(index)
//
// visiblePages.append(page)
// pagingScrollView.addSubview(page)
// // if exists caption, insert
// if let captionView = captionViewForPhotoAtIndex(index) {
// captionView.frame = frameForCaptionView(captionView, index: index)
// pagingScrollView.addSubview(captionView)
// // ref val for control
// page.captionView = captionView
// }
// }
for var index = firstIndex; index <= lastIndex; index += 1 {
for index in firstIndex...lastIndex {
if isDisplayingPageForIndex(index) {
continue
}