     }
 
     func commonInit() {
-        shapeLayer.fillColor = fillColor.CGColor
         self.layer.insertSublayer(shapeLayer, atIndex: 0)
         updatePath()
+        updateColor()
 
         addSubview(dummyView)
     }

        super.layoutSubviews()

        updatePath()

        dummyView.frame.origin = frame.origin
    }



        let newPosition = layer.frame.origin

        // Effects of this animation are invisible, because dummyView is hidden.
        // dummyView frame's change animation matches the animation of the whole view, though it's in a different coordinate system.
        UIView.animateWithDuration(anim.duration,
            delay: anim.beginTime,
            usingSpringWithDamping: damping,
