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

        super.init(coder: aDecoder)
    }
    
    public override func awakeFromNib() {
        super.awakeFromNib()
    }

    public override func layoutSubviews() {
        super.layoutSubviews()
        gradient.frame = bounds
    }


import UIKit

open class PastelView: UIView {

    private struct Animation {
        static let keyPath = "colors"
