        dashTwoLayer.position = layer.position
    }
    
    func rotationAnimation(_ angle: CGFloat) -> CABasicAnimation {
        var animation : CABasicAnimation
        if #available(iOS 9.0, *) {
            let springAnimation = CASpringAnimation(keyPath:"transform.rotation.z")
            springAnimation.damping = 1.5
            springAnimation.mass = 0.22
            springAnimation.initialVelocity = 0.5
            animation = springAnimation
        } else {