                 t = 1
             }
             
-            progressText.string = "\((Int)((countingStartValue + changeValue * (CGFloat)(cubicBezier.easing(t))) * 100))"
+            currentProgress = (countingStartValue + changeValue * CGFloat(cubicBezier.easing(t)))
+            progressText.string = "\((Int)(currentProgress * 100))"
         }
     }
     

    }
    @IBInspectable var progress: CGFloat = 0 {
        didSet {
            var currentProgress = progress
            if progress > 1 {
                currentProgress = 1
            } else if progress < 0 {
                currentProgress = 0
            }
            
            progressBar.strokeEnd = currentProgress
            progress = currentProgress
            
            countingStartTime = NSDate.timeIntervalSinceReferenceDate()
            countingStartValue = oldValue
            
            if displayLink == nil {
                displayLink = CADisplayLink(target: self, selector: #selector(updateProgressText))
                displayLink?.addToRunLoop(NSRunLoop.mainRunLoop(), forMode: NSDefaultRunLoopMode)
            }
        }
    }
    @IBInspectable var duration: Double = 0.25 {
        didSet {
//            progressBar.duration = duration
        }
    }
    

        
        self.initPropertiesDefaultValue()
        self.initUI()
        self.configure()
    }
    
    // MARK: - Override Methods
