     open override func layoutSubviews() {
         super.layoutSubviews()
         if window != nil {
-            animate()
+            draw()
         }
     }
     

        shapeLayer.fillColor = fillColor.cgColor
        shapeLayer.strokeColor = strokeColor.cgColor
        shapeLayer.lineWidth = lineWidth
        
        // Don't draw the arc initially
        shapeLayer.strokeEnd = 0.0
    }
    
    open func animate() {
        updateShapeLayer()
        
        #if TARGET_INTERFACE_BUILDER
        // TODO: Draw something in IB
        backgroundColor = UIColor.cyan
        #endif
        
        // Animate the strokeEnd property of the shapeLayer.
        let animation = CABasicAnimation(keyPath: "strokeEnd")

    }
    
    private func commonInit() {
        backgroundColor = UIColor.clear
        
        // Add the shapeLayer to the view's layer's sublayers
        layer.addSublayer(shapeLayer)
    }
