     }
     
     ///baseColor property. @IBInspectable
-    @IBInspectable public var baseColor:UIColor = UIColor.lightGrayColor()
+    @IBInspectable open var baseColor:UIColor = UIColor.lightGray
     
     ///progressColor property. @IBInspectable
-    @IBInspectable public var progressColor:UIColor? = UIColor.blueColor()
+    @IBInspectable open var progressColor:UIColor? = UIColor.blue
     
     ///bufferColor property. @IBInspectable
-    @IBInspectable public var bufferColor:UIColor? = nil
+    @IBInspectable open var bufferColor:UIColor? = nil
 
     ///BorderWidth property. @IBInspectable
-    @IBInspectable public var borderWidth: Double = 0.5{
+    @IBInspectable open var borderWidth: Double = 0.5{
         didSet{
             if borderWidth < 0.1 {
                 borderWidth = 0.1

/// - *@IBInspectable* property *fillColor* (*UIKit.UIColor*)
/// - *@IBInspectable* property *borderWidth* (*Swift.Double*)
/// - *@IBInspectable* property *sliderHeight* (*Swift.Double*)
@IBDesignable public class BufferSlider: UISlider {
    ///0.0 ~ 1.0. @IBInspectable
    @IBInspectable public var bufferStartValue:Double = 0{
        didSet{
            if bufferStartValue < 0.0 {
                bufferStartValue = 0

        
        if let color = progressColor {
            color.setFill()
            let fillRect = CGRect(
                x: sliderRect.origin.x,
                y: sliderRect.origin.y + borderWidth.CGFloatValue/2,
                width: sliderRect.size.width*CGFloat((value-minimumValue)/(maximumValue-minimumValue)),
                height: fillHeight)
            UIBezierPath(rect: fillRect).fill()
        }
    }
