         shapeLayer.fillColor = fillColor.cgColor
         shapeLayer.strokeColor = strokeColor.cgColor
         shapeLayer.lineWidth = lineWidth
-        
+    }
+    
+    open func draw() {
+        updateShapeLayer()
+        #if TARGET_INTERFACE_BUILDER
+        shapeLayer.strokeEnd = 1.0
+        #else
         // Don't draw the arc initially
         shapeLayer.strokeEnd = 0.0
+        animate()
+        #endif
     }
     
     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")

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

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