 
 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
         }

    
    private var gradientLayer: CAGradientLayer?
    
    override func awakeFromNib() {
        updateLayout()
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        updateLayout()
    }

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