     
     private func keyFrameAnimationForGradient(fadeLength: CGFloat, interval: CGFloat, delay: CGFloat) -> CAKeyframeAnimation {
         // Setup
-        var values: [[CGColorRef]]
-        var keyTimes: [CGFloat]
+        let values: [[CGColorRef]]
+        let keyTimes: [CGFloat]
         let transp = UIColor.clearColor().CGColor
         let opaque = UIColor.blackColor().CGColor
         

            
        case .Continuous:
            values = [
                [opaque, opaque, opaque, transp],           // Initial gradient
                [opaque, opaque, opaque, transp],           // Begin of fade in
                [transp, opaque, opaque, transp],           // End of fade in, just as scroll away starts
                [transp, opaque, opaque, transp],           // Begin of fade out, just before scroll home completes

    }
    
    override public func animationDidStop(anim: CAAnimation, finished flag: Bool) {
        if let finalColors = anim.valueForKey("setupColors") as? [CGColorRef] {
            if flag {
                let gradientMask = self.layer.mask as? CAGradientLayer
                gradientMask?.colors = finalColors
                self.layer.mask?.removeAnimationForKey("setupColors")
            }
        } else {
            let completion = anim.valueForKey(MarqueeKeys.CompletionClosure.rawValue) as? CompletionBlock<(Bool) -> ()>
            completion?.f(flag)
        }
    }
    
    //
