 
 import UIKit
 
-class ProgressBar: UIView {
+open class ProgressBar: UIView {
 
-    enum Style: Int {
+    public enum Style: Int {
         case round
         case flat
     }
     
-    enum Direction: Int {
+    public enum Direction: Int {
         case horizontal
         case vertical
     }
     
-    var style: Style = .round
-    var direction: Direction = .horizontal
+    open var style: Style = .round
+    open var direction: Direction = .horizontal
     
-    @IBInspectable var styleAdapter: Int {
+    @IBInspectable open var styleAdapter: Int {
         get {
             return style.rawValue
         }

        }
    }
    
    @IBInspectable var directionAdapter: Int {
        get {
            return direction.rawValue
        }

        }
    }
    
    @IBInspectable open var startColor: UIColor = .blue {
        didSet {
            updateLayout()
        }
    }
    @IBInspectable open var endColor: UIColor = .red {
        didSet {
            updateLayout()
        }
    }
    @IBInspectable open var borderColor: UIColor? {
        didSet {
            updateLayout()
        }
    }
    @IBInspectable open var borderWidth: CGFloat = 0 {
        didSet {
            updateLayout()
        }
    }
    @IBInspectable open var value: CGFloat = 0 {
        didSet {
            value = max(0, value)
            value = min(value, 1)
