             self.setNeedsDisplay()
         }
     }
+
     
     @IBInspectable open var currentTab: Int = 0 {
-        didSet {
-            self.setNeedsDisplay()
-        }
-    }
-    
-    open var stepDrawingMode: StepDrawingMode = .drawIndex {
-        didSet {
-            self.setNeedsDisplay()
-        }
-    }
-    
-    open var insets: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) {
-        didSet {
-            self.setNeedsDisplay()
-        }
-    }
-    
-    private var actualSpacing: CGFloat {
-        return (circleSpacing == SteppedProgressBarAutomaticDimension) ? (availableFrame.width - 6.0 - (CGFloat(numberOfItems) * circleRadius)) / CGFloat(numberOfItems - 1) : circleSpacing
-    }
-    
-    open var titles = ["One", "Two","Three", "Four","Five", "Six"] {
         didSet {
             self.setNeedsDisplay()
         }

        self.setNeedsDisplay()
    }
    
    @discardableResult
    func drawTabs(from begin: Int, to end: Int, color: UIColor, textColor: UIColor) -> (start: CGPoint, end: CGPoint) {
        let halfX = (CGFloat(numberOfItems - 1) * (actualSpacing + circleRadius) / 2.0)

    // Changes the tint color of theactiveImages image to the activeColor
    @IBInspectable open  var tintActiveImage = false
    @IBInspectable open var justCheckCompleted = true
    
    open var stepDrawingMode: StepDrawingMode = .drawIndex {
        didSet {
            self.setNeedsDisplay()
        }
    }
    
    open var insets: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) {
        didSet {
            self.setNeedsDisplay()
        }
    }
    
    open var titles = ["One", "Two","Three", "Four","Five", "Six"] {
        didSet {
            self.setNeedsDisplay()
        }
    }
    
    var availableFrame: CGRect {
        var correctedFrame = bounds
        correctedFrame.origin.x = insets.left
        correctedFrame.origin.y = insets.top
        
        correctedFrame.size.width -= insets.left + insets.right
        correctedFrame.size.height -= insets.top + insets.bottom
        
        return correctedFrame
    }
    
    /*
     This will redraw and change color for the steps which are done. For example, if we set this as Red, Orange,
