update for new swift style

This commit is contained in:
Alexsander Khitev 2016-03-23 22:45:40 +04:00
parent 897c5f5cff
commit 3cd3b00d30
1 changed files with 1 additions and 22 deletions

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
}