     
     private var lastPercentage: CGFloat = 0
     
+    
     override public init(frame: CGRect) {
         super.init(frame: frame)
         self.setup()

        
        NSLayoutConstraint.activateConstraints([self.selectionIndicatorBottomConstraint, self.selectionIndicatorLeadingConstraint, self.selectionIndicatorHeightConstraint, self.selectionIndicatorWidthConstraint])
        
        self.collectionView.registerClass(ScrollingTabCell.classForCoder(), forCellWithReuseIdentifier: ScrollingTabTitleCell)
        self.collectionView.collectionViewLayout.registerClass(ScrollingTabDivider.classForCoder(), forDecorationViewOfKind: ScrollingTabVerticalDividerType)
        
        self.collectionView.showsHorizontalScrollIndicator = false
        self.collectionView.showsVerticalScrollIndicator = false

        }
    }
    
    public var classForCell: AnyClass = ScrollingTabCell.classForCoder() {
        didSet {
            if self.collectionView != nil {
                self.collectionView.registerClass(classForCell, forCellWithReuseIdentifier: ScrollingTabTitleCell)
            }
        }
    }
    public var classForDivider: AnyClass = ScrollingTabDivider.classForCoder() {
        didSet {
            if self.collectionView != nil {
                self.collectionView.collectionViewLayout.registerClass(classForDivider, forDecorationViewOfKind: ScrollingTabVerticalDividerType)
                self.collectionView.collectionViewLayout.invalidateLayout()
            }
        }
    }
    
    var selectionIndicatorLeadingConstraint: NSLayoutConstraint!
    var selectionIndicatorBottomConstraint: NSLayoutConstraint!
    var selectionIndicatorHeightConstraint: NSLayoutConstraint!
