         }
         return nil
     }
-    public var collectionView: UICollectionView?
-    private var collectionLayout: HFSwipeViewFlowLayout?
-    
-    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
-    
-    // MARK: - Properties
+    
+    
     public var collectionBackgroundColor: UIColor? {
         set {
             collectionView!.backgroundView?.backgroundColor = newValue

import UIKit
import HFUtility

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

        collectionView!.contentSize = contentSize
        log("successfully set content size: \(self.collectionView!.contentSize)")
    }
}



// MARK: - Public APIs
extension HFSwipeView {
    public func layoutViews() {
        
        log("\(#function)")
