         animation.values = fadeKeyValues
         animation.keyTimes = fadeKeyTimes
         animation.timingFunctions = fadeTimingFunctions
-        
-        return (anim: animation, duration: max(totalTime,totalDuration))
+
+        return (anim: animation, duration: max(totalTime, totalDuration))
     }
     
     private func applyGradientMask(_ fadeLength: CGFloat, animated: Bool, firstStep: MarqueeStep? = nil) {

    }
}

public struct EdgeFade : OptionSet {
    public let rawValue: Int
    public static let leading  = EdgeFade(rawValue: 1 << 0)
    public static let trailing = EdgeFade(rawValue: 1 << 1)
    
    public init(rawValue: Int) {
        self.rawValue = rawValue;
    }
}

// Define helpful typealiases
fileprivate typealias MLAnimationCompletionBlock = (_ finished: Bool) -> ()
fileprivate typealias MLAnimation = (anim: CAKeyframeAnimation, duration: CGFloat)

fileprivate class GradientSetupAnimation: CABasicAnimation {

            awayOffset = 0.0
            
            // Remove an additional sublabels (for continuous types)
            repliLayer?.instanceCount = 1

            // Set the sublabel frame to calculated labelFrame
            sublabel.frame = labelFrame
            
