     }
   }
   
+  var tabView = UIView()
+  
   required init(coder aDecoder: NSCoder) {
     fatalError("init(coder:) has not been implemented")
   }

      return Int((offset.x + pageWidth * 0.5) / pageWidth)
  }
  
  // MARK - UIScrollViewDelegate
  func scrollViewWillBeginDragging(scrollView: UIScrollView) {
    timer.invalidate()
    currentPage = pageFromOffset(scrollView.contentOffset)

    var frame = layoutViewFrameInView(view)
    frame.origin.x += kMargin
    frame.size.width -= kMargin * 2
    frame.origin.y += 10 // TODO
    frame.size.height -= 10  // TODO
    return frame
  }
  
