 		}
 		return lowerThumbLayer.highlighted || upperThumbLayer.highlighted
 	}
-
+	
 	public override func continueTrackingWithTouch(touch: UITouch, withEvent event: UIEvent?) -> Bool {
 		let location = touch.locationInView(self)
 		let deltaLocation = location.x - previousLocation.x
 		previousLocation = location
-
+		
 		if lowerThumbLayer.highlighted {
 			updateLowerValue(deltaLocation)
-
+			
 		} else if upperThumbLayer.highlighted {
 			updateUpperValue(deltaLocation)
 		}

			trackLayer.setNeedsDisplay()
		}
	}

	/**
		The size of thumb.
		
		The thumbs mark the lower and upper end of the selected range on the slider
	*/

	@IBInspectable public var thumbSize: CGSize = CGSize(width: 10.0, height: 10.0) {
		didSet {
			updateLayerFrames()
		}
	}

	/**
		The color used as tint color for the thumbs

		The thumbs mark the lower and upper end of the selected range on the slider
		The default color is #007AFF (rgba = 0, 122, 255, 1)
	*/

	@IBInspectable public var thumbTintColor: UIColor = UIColor.whiteColor() {
		didSet {
			lowerThumbLayer.tintColor = thumbTintColor

			lowerValue = actualValue
		}
	}
	
	/**
	This method makes sure the given value lies between given upper and lower limit.
	
	- Parameter value: The value to be checked
	lowerValue: The lower limit
	upperValue: The upper limit
	
	
	- returns
	The given value if it lies within the range
	
	The lowerValue if the given value is less than the lowerValue
	
	The upperValue if the given value is greater than the upperValue
	*/
	
	private func boundValue(value: CGFloat, lowerValue: CGFloat, upperValue: CGFloat) -> CGFloat {
		return min(max(value, lowerValue), upperValue)
	}
	
	// MARK: - Touches
	
	public override func beginTrackingWithTouch(touch: UITouch, withEvent event: UIEvent?) -> Bool {
		previousLocation = touch.locationInView(self)
		if lowerThumbLayer.frame.contains(previousLocation) {
