             if offset == 0 { continue }
             fadeTimingFunctions.append(timingFunctionForAnimationCurve(step.timingFunction))
         }
-
         
         // Create new animation
         let animation = CAKeyframeAnimation(keyPath: "colors")

        
        for (offset, step) in fadeSteps {
            // Fade times
            if step.timeStep >= 0 {
                // Subsequent
                totalTime += step.timeStep
            } else {
                // Precedent, grab next step
                totalTime = fadeSteps[offset + 1].element.timeStep + step.timeStep
            }
            fadeKeyTimes.append(NSNumber(value:Float(totalTime/totalDuration)))
            
            // Fade Values
            let values: [CGColor]

    private func generateGradientAnimation(_ sequence: [MarqueeStep], totalDuration: CGFloat) -> MLAnimation {
        // Setup
        var totalTime: CGFloat = 0.0
        var stepTime: CGFloat = 0.0
        var fadeKeyValues = [[CGColor]]()
        var fadeKeyTimes = [NSNumber]()
        var fadeTimingFunctions = [CAMediaTimingFunction]()
