             
             // 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,

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

        }
    }
    
    private func updateTabAppearance(animated animated: Bool = true) {
        if (tabGradient) {
            let currentIndex = pageIndex
            if (numberOfPages != 0) {
                for i in 0 ..< numberOfPages {
                    var alpha: CGFloat = 1.0
                    
                    let offset = abs(i - currentIndex)
