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

        super.init(frame: frame)
        setup()
    }
    
    
    required public init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        setup()
    }
    
//    public override func drawLayer(layer: CALayer, inContext ctx: CGContext) {
//        super.drawLayer(layer, inContext: ctx)
//    }
    
    fileprivate func setup() {
        let scale =  UIScreen.main.scale

        layer.allowsGroupOpacity = true
        layer.shouldRasterize = true
        layer.rasterizationScale = scale
        self.backgroundColor    = UIColor.white
        layer.setNeedsDisplay()
    }
}

