 
 import UIKit
 
-class PastelView: UIView {
+public class PastelView: UIView {
 
     struct Animation {
         static let keyPath = "colors"

                colors[(currentGradient + 1) % colors.count].cgColor]
    }
    
    func setColors(colors: [UIColor]) {
        guard colors.count > 0 else { return }
        self.colors = colors
    }
    
    func addColor(color: UIColor) {
        self.colors.append(color)
    }
    

        gradient.add(animation, forKey: Animation.key)
    }
    
    public override func removeFromSuperview() {
        super.removeFromSuperview()
        gradient.removeAllAnimations()
        gradient.removeFromSuperlayer()
