 import UIKit
 import QuartzCore
 
+enum Constants {
+    static let thickness = CGFloat(3) // this is the closes i found to UISlider
+}
+
 class RangeSliderTrackLayer: CALayer {
     weak var rangeSlider: RangeSlider?
     

        layer.addSublayer(upperThumbLayer)
    }
    
    func updateLayerFrames() {
        CATransaction.begin()
        CATransaction.setDisableActions(true)

        CGContextSetFillColorWithColor(ctx, slider.trackHighlightTintColor.CGColor)
        let lowerValuePosition = CGFloat(slider.positionForValue(slider.lowerValue))
        let upperValuePosition = CGFloat(slider.positionForValue(slider.upperValue))
        let rect = CGRect(x: lowerValuePosition, y: sliderY, width: upperValuePosition - lowerValuePosition, height: Constants.thickness)
        CGContextFillRect(ctx, rect)
    }
}
