     }
     */
     
-    override init(frame: CGRect) {
+    public override init(frame: CGRect) {
         super.init(frame: frame)
     }
     
-    required init?(coder aDecoder: NSCoder) {
+    public required init?(coder aDecoder: NSCoder) {
         super.init(coder: aDecoder)
     }
     
-    override func awakeFromNib() {
+    public override func awakeFromNib() {
         super.awakeFromNib()
     }
     
-    func startAnimation() {
+    public func startAnimation() {
         gradient.removeAllAnimations()
         setup()
         animateGradient()


import UIKit

class PastelView: UIView {

    struct Animation {
        static let keyPath = "colors"

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