             return;
         }
         
-        if (_timePassed >= self.timeMax) {
+        if (_timePassed >= self.progressTime) {
             self.fadeOut { (Bool) in
                 super.sendAction(action, to: target, for: event);
                 self.fadeIn();

    //MARK: - Properties
    
    /// Max time in seconde to fill the bar
    @IBInspectable open var timeMax:Double = 3;
    
    /// Bar Height
    @IBInspectable open var barHeight:CGFloat = 10;
    
    /// Bar background color style with sync engine
    @IBInspectable open var barBgColor:String? {

        
        //Progress Bar View
        _progressBarView = BaseUIView(frame: self.progressBarViewFrame);
        _progressBarView.bgColorStyle = self.barColor ?? "accent";
        _progressView.addSubview(_progressBarView);
    } //F.E.
    
