             return
         }
 
-        updatesDisplayLink.add(to: RunLoop.main(), forMode: RunLoopMode.commonModes.rawValue)
+        updatesDisplayLink.add(to: RunLoop.main, forMode: .commonModes)
         startNewAnimation()
     }
 


    let fadeOutDuration: TimeInterval = 2.0

    var completion: ((animation: KenBurnsAnimation) -> ())?
    var willFadeOut: ((animation: KenBurnsAnimation) -> ())?

    init(targetImage: UIImageView, zoomIntensity: Double, durationRange: DurationRange, pansAcross: Bool) {
        self.targetImage = targetImage

            return
        }
        guard let completion = self.completion else { return }
        completion(self)
        self.completion = nil // never call it again
    }
}
