 class CampaignCell: UICollectionViewCell {
     
     var campaign: Campaign?
+    var progressView: CampaignGoalView!
 
     @IBOutlet weak var containerView: UIView!
     @IBOutlet weak var imageView: UIImageView!

        progressView.layoutIfNeeded()
        progressView.layoutSubviews()
        
        progressView.campaign = campaign
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
//        let progressView = NSBundle.mainBundle().loadNibNamed("CampaignGoalView", owner: self, options: nil)[0] as! CampaignGoalView
//        progressView.campaign = campaign
//        progressView.frame = CGRect(x: 0.0, y: 386.0, width: self.bounds.width, height: 50.0)
//        
//        println(progressView.progress.bounds)
//        
//        self.addSubview(progressView)
//        self.bringSubviewToFront(progressView.progress)
    }
    
    func updateInformations() {

    override func drawRect(rect: CGRect) {
        super.drawRect(rect)
        
        progressView = NSBundle.mainBundle().loadNibNamed("CampaignGoalView", owner: self, options: nil)[0] as! CampaignGoalView
        
        self.containerView.addSubview(progressView)
        self.containerView.bringSubviewToFront(progressView.progress)
        
        let frameSize = progressView.frame
        progressView.frame = CGRectMake(progressView.frame.origin.x, self.frame.size.height - frameSize.height, self.frame.size.width, frameSize.height)
        
