         return NSIndexPath(forItem: minIdx, inSection: 0)
     }
     
+    private func centerOffset() -> CGPoint {
+        var center = self.collectionView!.contentOffset
+        center.x += self.width / 2
+        return center
+    }
+    
     private func centeredOffsetForIndex(indexPath: NSIndexPath) -> CGPoint {
         var newX: CGFloat = 0
         if circulating {

    
    public var pageControlHidden: Bool {
        set(hidden) {
            preferredPageConrolHidden = hidden
            pageControl.hidden = hidden
        }
        get {

    
    private var pageControl: UIPageControl!
    private var currentRealPage: Int = -1
    public var currentPage: Int = -1
    public var centerView: UIView? {
        let center = centerOffset()
        guard let indexPath = collectionView!.indexPathForItemAtPoint(center) else {
            logw("Cannot find index path for offset: \(center)")
            return nil
        }
        let visiblePaths = collectionView!.indexPathsForVisibleItems()
        
        for visiblePath in visiblePaths {
            if indexPath.row == visiblePath.row {
                let cellOnCenter = collectionView!.cellForItemAtIndexPath(visiblePath)
                return cellOnCenter?.contentView.viewWithTag(kSwipeViewCellContentTag)
            }
        }
        return nil
    }
    public var collectionView: UICollectionView?
    private var collectionLayout: HFSwipeViewFlowLayout?
    
