     @IBInspectable public var valueMultiplier: Double = 100
     
     
-    
-    
-    
-    
     private let ringLayer = CAShapeLayer()
     private let thumbLayer = CALayer()
     private let imgView = UIImageView()
     private var thumbImageView = UIImageView()
     private var arcPath = UIBezierPath()
-    
-    
+    private let textLabel = UILabel()
     
     // Arc animation notify Delegate
     public var delegate: KXArcNotifyDelegate?
-    
-    
-    
-    
- 
+
+    // TextAnimation
+    private var start: Float = 0.0
+    private var end: Float = 0.0
+    private var timer: Timer?
+    private var progress: TimeInterval!
+    private var lastUpdate: TimeInterval!
+    private var duration: TimeInterval!
+    private var countingType: Float!
+    private var animationType: UIViewAnimationCurve!
+    private let kCounterRate: Float = 3.0
+
+    private var currentValue: Float {
+        if (progress >= duration) {
+            return end
+        }
+        let percent = Float(progress / duration)
+        let update = updateCounter(t: percent)
+        return start + (update * (end - start));
+    }
+
     //designated init
     
-    public init(ringWidth: CGFloat, ringHeight: CGFloat,backgroundColor: UIColor, ringBackgroundColour: UIColor,  ringForegroundColour: UIColor, foreGroundArcWidth: CGFloat, backGroundArcWidth: CGFloat, arcStartAngle: CGFloat,
-                arcEndAngle: CGFloat, arcMargin: CGFloat) {
-        
+    public init(ringWidth: CGFloat, ringHeight: CGFloat,backgroundColor: UIColor, ringBackgroundColour: UIColor,  ringForegroundColour: UIColor, foreGroundArcWidth: CGFloat, backGroundArcWidth: CGFloat, arcStartAngle: CGFloat, arcEndAngle: CGFloat, arcMargin: CGFloat) {
         
         self.ringBackgroundColour   =   ringBackgroundColour
         self.ringForegroundColour   =   ringForegroundColour

    @IBInspectable public var backGroundArcWidth: CGFloat   = 8
    
    
    // turn this on to show image at the arc leading tip 
    
    @IBInspectable public var isthumbImageAvailable: Bool = false
    @IBInspectable public var thumbImage: UIImage?

    
    @IBInspectable public var arcStartAngle: CGFloat = 120
    @IBInspectable public var arcEndAngle: CGFloat = 60
    @IBInspectable public var arcMargin: CGFloat = 75
    
    // turn this on to display  Image or Text at the center
    @IBInspectable public var showImage: Bool = false
    @IBInspectable public var image: UIImage?
    @IBInspectable public var showText: Bool = false
    @IBInspectable public var valueFontName: String = "HelveticaNeue"
    @IBInspectable public var valueFontSize: CGFloat = 25.0
