     /// The current bounds of the progress view.
     var bounds: CGRect = .zero {
         didSet {
-            let didChange = bounds != oldValue
-            guard didChange else {
+            guard bounds != oldValue else {
                 // Prevent unnecessary UI-updates.
                 return
             }
 
             // Update mask-layer frame accordingly.
-            maskLayerFrameAnimationSubject.value = makeMaskLayerFrameAnimationForCurrentProgress(animated: false)
+            maskLayerFrameAnimationSubject.value = maskLayerFrameAnimationForCurrentProgress(animated: false)
         }
     }
 

        if animated {
            animationDuration = self.animationDuration
        } else {
            animationDuration = 0.0
        }

        return FrameAnimation(frame: maskLayerFrame,

    struct FrameAnimation: Equatable {
        /// Initializes the struct with all values set to zero / default.
        static let zero = FrameAnimation(frame: .zero,
                                         duration: 0,
                                         timingFunction: CAMediaTimingFunction(name: .default))

        /// The new rect for the frame.
