             
             // setup tabs first, and set contents later (lazyLoadPages)
             var tabSectionScrollViewContentWidth: CGFloat = 0
-            for i in 0..<numberOfPages {
+            for i in 0 ..< numberOfPages {
                 if let tabView = tabViewForPageAtIndex(i) {
                     tabView.frame = CGRect(
                         x: tabSectionScrollViewContentWidth,

                // set default position of tabs and contents
                tabSectionScrollView.contentOffset = CGPoint(x: tabOffsetX + tabSectionScrollView.contentInset.left * -1, y: tabSectionScrollView.contentOffset.y)
                contentSectionScrollView.contentOffset = CGPoint(x: contentOffsetX  + contentSectionScrollView.contentInset.left * -1, y: contentSectionScrollView.contentOffset.y)
                updateTabAppearance()
            }
            prevPageIndex = index
        }

                var boundLeft = 0 as CGFloat
                var boundRight = 0 as CGFloat
                
                for i in 0 ..< numberOfPages {
                    startOffset = endOffset
                    endOffset = startOffset + widthForTabAtIndex(i)
                    
