 class MBBarProgressView: UIView {
     var progress: Float = 0.0 {
         didSet {
-            self.swift_performSelectorOnMainThread("setNeedsDisplay", withObject: nil, waitUntilDone: false)
+            self.updateUI()
         }
     }
     
     var lineColor: UIColor? {
         didSet {
-            self.swift_performSelectorOnMainThread("setNeedsDisplay", withObject: nil, waitUntilDone: false)
+            self.updateUI()
         }
     }
     
     var progressRemainingColor: UIColor? {
         didSet {
-            self.swift_performSelectorOnMainThread("setNeedsDisplay", withObject: nil, waitUntilDone: false)
+            self.updateUI()
         }
     }
     
     var progressColor: UIColor? {
         didSet {
-            self.swift_performSelectorOnMainThread("setNeedsDisplay", withObject: nil, waitUntilDone: false)
+            self.updateUI()
         }
     }
     

class MBRoundProgressView: UIView {
    var progress: Float = 0.0 {
        didSet {
            self.swift_performSelectorOnMainThread("setNeedsDisplay", withObject: nil, waitUntilDone: false)
        }
    }
    
    var progressTintColor: UIColor? {
        didSet {
            self.swift_performSelectorOnMainThread("setNeedsDisplay", withObject: nil, waitUntilDone: false)
        }
    }
    
    var backgroundTintColor: UIColor? {
        didSet {
            self.swift_performSelectorOnMainThread("setNeedsDisplay", withObject: nil, waitUntilDone: false)
        }
    }
    
    var annular: Bool = false {
        didSet {
            self.swift_performSelectorOnMainThread("setNeedsDisplay", withObject: nil, waitUntilDone: false)
        }
    }
    

    var labelFont = UIFont.boldSystemFontOfSize(kLabelFontSize) {
        didSet {
            label!.font = labelFont
            self.updateUI()
        }
    }
    var labelColor = UIColor.whiteColor() {
        didSet {
            label!.textColor = labelColor
            self.updateUI()
        }
    }
    var detailsLabelFont = UIFont.boldSystemFontOfSize(kDetailsLabelFontSize) {
        didSet {
            detailsLabel!.font = detailsLabelFont
            self.updateUI()
        }
    }
    var detailsLabelColor = UIColor.whiteColor() {
        didSet {
            detailsLabel!.textColor = detailsLabelColor
            self.updateUI()
        }
    }
    var activityIndicatorColor = UIColor.whiteColor() {
        didSet {
            self.updateIndicators()
            self.updateUI()
        }
    }
    var xOffset = 0.0
