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


import UIKit
import Dispatch

@objc protocol MBProgressHUDDelegate {
    optional func hudWasHidden(hud: MBProgressHUD)

    
    var lineColor: UIColor = UIColor.whiteColor() {
        didSet {
            self.updateUI()
        }
    }
    
