 //
-//  MilestoneProgressView.swift
-//  MilestoneProgressBar
+//  MilestoneProgressBar.swift
 //
 //  Created by Virindh Borra on 8/20/16.
 //  Copyright © 2016 Virindh Borra. All rights reserved.

    }
}

class MilestoneProgressView: UIProgressView {
    
    var milestones: [Milestone]! = []
    var barHeight:CGFloat = 1.0 {

                let imageView = UIImageView(frame: CGRect(x: imageViewX, y: imageViewY, width: imageViewSideLength, height: imageViewSideLength))
                imageView.image = milestoneImage
                imageView.contentMode = .ScaleAspectFit
                imageView.restorationIdentifier = "Milestone Image" //Needed: a better way to identify idividual imageviews that were added by MilestoneProgressBar
                if milestone.progress <= progress && milestone.shouldLightUp {
                    //This milestone should be lit up(tinted)
                    imageView.image = imageView.image?.imageWithRenderingMode(.AlwaysTemplate)
