         fadeOutAnimation.toValue  = 0
         fadeOutAnimation.duration = AfterpartDuration
         fadeOutAnimation.fillMode = kCAFillModeForwards
-        fadeOutAnimation.removedOnCompletion = false
+        fadeOutAnimation.isRemovedOnCompletion = false
         fadeOutAnimation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseIn)
-        circleOutlineLayer.addAnimation(fadeOutAnimation, forKey: "fadeOut")
+        circleOutlineLayer.add(fadeOutAnimation, forKey: "fadeOut")
     }
     
     private func startFillCircleAnimation() {

                                    "strokeStart" : NSNull(),
                                    "transform" : NSNull(),
                                    "strokeColor" : NSNull()]
        circleOutlineLayer.backgroundColor = UIColor.clearColor().CGColor
        circleOutlineLayer.strokeColor     = UIColor.blueColor().CGColor
        circleOutlineLayer.fillColor       = UIColor.clearColor().CGColor
        circleOutlineLayer.lineWidth       = outLineWidth
        circleOutlineLayer.strokeStart     = 0
        circleOutlineLayer.strokeEnd       = MinStrokeLength

    size: CGSize(width: 80, height: 80)))
progress.center = CGPoint(x: view.bounds.width * 0.5, y: view.bounds.height * 0.5)
view.addSubview(progress)
PlaygroundPage.current.liveView = view
progress.startAnimating(duration: 3.0)
