 import UIKit
 import FlatUIColors
 
-class AATrickViewController: UIViewController {
+class AATrickViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate {
+    
+    let cellReuseID:String = "cellReuseID"
     
     override func viewDidLoad() {
         super.viewDidLoad()
+        
+        
 
         let card1 = produceCardView()
 

        layout.sectionInset = UIEdgeInsets(top: 10.0, left: 10.0, bottom: 10.0, right: 10.0)
        layout.estimatedItemSize = CGSizeMake(30, 30)
        let collectionView = UICollectionView(frame: CGRectZero, collectionViewLayout: layout)
        return collectionView
    }
    
    //TODO: Refactor with the new extensions
    
    
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}


extension FlatUIColors {
    public static func randomFlatColor()->UIColor {

    func produceCardView()->ABSwipeableCardView {
        let cardView = ABSwipeableCardView(superView: view)
        cardView.backgroundColor = FlatUIColors.randomFlatColor()
        let collectionView = getCollectionView()
        cardView.addSubview(collectionView)
        collectionView.frame = CGRectInset(cardView.bounds, 20, 20)
        return cardView
