     private func updateForTouch (touch: UITouch, modifyHue: Bool) {
         if modifyHue {
             // Modify the hue at constant lightness
-            var locationInView = touch.locationInView(self)
+            let locationInView = touch.locationInView(self)
             hue = 1 - (locationInView.y / frame.height)
             lightness = 0.5
         } else {
             // Modify the lightness for the current hue
-            var locationInSuperview = touch.locationInView(self.superview)
+            let locationInSuperview = touch.locationInView(superview)
             lightness = 1 - (locationInSuperview.y / superview!.frame.height)
         }
     }

        return true
    }
    
    public override func continueTrackingWithTouch(touch: UITouch, withEvent event: UIEvent) -> Bool {
        super.continueTrackingWithTouch(touch, withEvent: event)
        
        updateForTouch(touch, modifyHue: touchInside)

            drawLayer.cornerRadius = cornerRadius
        } else {
            // Default to pill shape
            let shortestSide = (innerFrame.width > innerFrame.height) ? innerFrame.height : innerFrame.width
            drawLayer.cornerRadius = shortestSide / 2.0
        }
        
        // Draw background
		drawLayer.colors = [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, 0.0].map { (hue) -> CGColor in
			return UIColor(h: hue, s: 1.0, l: 0.5, alpha: 1.0).CGColor
		}
        drawLayer.locations = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
        drawLayer.frame = innerFrame
        drawLayer.borderColor = borderColor.CGColor
