Swift facilitan en AnimateKeyframes

extension UIView.KeyframeAnimationOptions {
    init(animationOptions: UIView.AnimationOptions) {
        self.init(rawValue: animationOptions.rawValue)
    }
}
// Usage:
UIView.KeyframeAnimationOptions(animationOptions: .curveEaseOut)
TheKrisinator