             return;
         }
         oldState = on
+     
+      let shapeColor: UIColor = onTintColor ?? defaultTintColor
+      shape.fillColor = shapeColor.CGColor
       
         if on {
             CATransaction.begin()

    private var shape: CAShapeLayer! = CAShapeLayer()
    private var radius: CGFloat = 0.0
    private var oldState = false
  
    override public var on: Bool {
        didSet(oldValue) {

    
    
    private func commonInit(parentView: UIView?) {
        let shapeColor: UIColor = onTintColor ?? defaultTintColor
        
        layer.borderWidth = 0.5
        layer.borderColor = UIColor.whiteColor().CGColor;
