         
         // retrieve item count
         let itemCount = integer(self.dataSource?.swipeViewItemCount(self), defaultValue: 0)
-        
-        if tag == 0 && itemCount != 0 {
-            log("CATEGORY SWIPEVIEW")
-        }
         
         // pixel correction
         let neededSpace = (itemSize.width + itemSpace) * CGFloat(itemCount) - (circulating ? 0 : itemSpace)

import UIKit
import HFUtility

@objc public protocol HFSwipeViewDataSource: NSObjectProtocol {
    func swipeViewItemCount(swipeView: HFSwipeView) -> Int
    func swipeViewItemSize(swipeView: HFSwipeView) -> CGSize

    }
}


// MARK: - HFSwipeView
public class HFSwipeView: UIView {
    
    // MARK: Private Constants
    private var kSwipeViewCellContentTag: Int!
    private let kSwipeViewCellIdentifier = NSUUID().UUIDString
    private let kPageControlHeight: CGFloat = 20
    private let kPageControlHorizontalPadding: CGFloat = 10
    
    // MARK: Private Variables
    private var initialized: Bool = false
    private var canUpdateWhileScrolling: Bool = true
    private var fixingOffset: Bool = false
    private var itemSize: CGSize? = nil
    private var itemSpace: CGFloat = 0
    private var realViewCount: Int = 0                  // real item count includes fake views on both side
    private var dummyCount: Int = 0
    private var dummyWidth: CGFloat = 0
    private var pageControl: UIPageControl!
    private var currentRealPage: Int = -1
    private var collectionLayout: HFSwipeViewFlowLayout?
    
    // MARK: Public Properties
    public var currentPage: Int = -1
    public var collectionView: UICollectionView?
    
    public var centerView: UIView? {
        let center = centerOffset()
        guard let indexPath = collectionView!.indexPathForItemAtPoint(center) else {
