diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ImageSlideshow/Classes/Core/ZoomAnimatedTransitioning.swift b/ImageSlideshow/Classes/Core/ZoomAnimatedTransitioning.swift index 9b29afae..8d214cd4 100644 --- a/ImageSlideshow/Classes/Core/ZoomAnimatedTransitioning.swift +++ b/ImageSlideshow/Classes/Core/ZoomAnimatedTransitioning.swift @@ -268,7 +268,9 @@ class ZoomOutAnimator: ZoomAnimator, UIViewControllerAnimatedTransitioning { let params = animationParams(using: transitionContext) let animator = UIViewPropertyAnimator(duration: params.0, curve: .linear, animations: params.1) - animator.addCompletion(params.2) + animator.addCompletion { position in + params.2(position) + } animatorForCurrentTransition = animator return animator diff --git a/Package.resolved b/Package.resolved index 28277c26..250c9e46 100644 --- a/Package.resolved +++ b/Package.resolved @@ -24,7 +24,7 @@ "repositoryURL": "https://github.com/onevcat/Kingfisher.git", "state": { "branch": null, - "revision": "349ed06467a6f8a4939bcb83db301542bc84eac9", + "revision": "ec2613ab773a03e6ca0b35384de7b706fa7dc7f3", "version": "5.13.4" } },