From 1907bf94a9be972310c4ad3fb635e7d57dffbea9 Mon Sep 17 00:00:00 2001 From: KAWASHIMA Yoshiyuki Date: Tue, 18 Jan 2022 11:38:34 +0900 Subject: [PATCH] Demo: 'UIViewAnimationOptions' has been renamed to 'UIView.AnimationOptions' refs #41 #18 --- AKImageCropperViewExample/CropperViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AKImageCropperViewExample/CropperViewController.swift b/AKImageCropperViewExample/CropperViewController.swift index fb0fac5..a8c1d34 100644 --- a/AKImageCropperViewExample/CropperViewController.swift +++ b/AKImageCropperViewExample/CropperViewController.swift @@ -90,7 +90,7 @@ final class CropperViewController: UIViewController { cropView.hideOverlayView(animationDuration: 0.3) - UIView.animate(withDuration: 0.3, delay: 0, options: UIViewAnimationOptions.curveLinear, animations: { + UIView.animate(withDuration: 0.3, delay: 0, options: UIView.AnimationOptions.curveLinear, animations: { self.overlayActionView.alpha = 0 }, completion: nil) @@ -99,7 +99,7 @@ final class CropperViewController: UIViewController { cropView.showOverlayView(animationDuration: 0.3) - UIView.animate(withDuration: 0.3, delay: 0.3, options: UIViewAnimationOptions.curveLinear, animations: { + UIView.animate(withDuration: 0.3, delay: 0.3, options: UIView.AnimationOptions.curveLinear, animations: { self.overlayActionView.alpha = 1 }, completion: nil)