       animation.fromValue = 0.33
       animation.toValue = 1
       animation.duration = duration
-      animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseOut)
+        animation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeOut)
       animation.repeatCount = 0
-      animation.fillMode = kCAFillModeForwards
+        animation.fillMode = CAMediaTimingFillMode.forwards
       animation.isRemovedOnCompletion = false
       return animation
     }()

        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
    }()
