     spinnerCircle.lineWidth = spinnerLineWidth
     spinnerCircle.strokeStart = 0
     spinnerCircle.strokeEnd = 0.33
-    spinnerCircle.lineCap = kCALineCapRound
+    spinnerCircle.lineCap = CAShapeLayerLineCap.round
     spinnerCircle.fillColor = UIColor.clear.cgColor
     spinnerCircle.strokeColor = spinnerStartColor
     spinnerCircleView.layer.addSublayer(spinnerCircle)

        NotificationCenter.default.addObserver(
          countdownView,
          selector: #selector(CountdownView.updateFrame),
          name: NSNotification.Name.UIApplicationDidChangeStatusBarOrientation,
          object: nil)
      #endif
    }

      animation.fromValue = from
      animation.toValue = to
      animation.duration = duration
        animation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeIn)
      animation.repeatCount = 0
        animation.fillMode = CAMediaTimingFillMode.forwards
      animation.isRemovedOnCompletion = false
      return animation
    }()
