         layer.allowsGroupOpacity = true
         layer.shouldRasterize = true
         layer.rasterizationScale = scale
-        
+        self.backgroundColor    = UIColor.white
         layer.setNeedsDisplay()
-        
-        
-        // layer.delegate = self
-    
-        self.backgroundColor       = UIColor.white;
     }
 }
 



// MARK: - Gradient View

open class OMGradientView<T:AnyObject> : UIView {
    
    // MARK: - Properties
    

        return layer as! T
    }
    
    override open class var layerClass: AnyClass {
        return T.self as AnyClass
    }
    
