From 375ad259194d97ce9b2e81bc0c320ad7884fd033 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 31 Mar 2024 16:07:09 -0400 Subject: [PATCH] Tweak gallery animation timing --- .../GalleryVC/GalleryPresentationAnimationController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/GalleryVC/Sources/GalleryVC/GalleryPresentationAnimationController.swift b/Packages/GalleryVC/Sources/GalleryVC/GalleryPresentationAnimationController.swift index b3e461cf91..36d71ab79e 100644 --- a/Packages/GalleryVC/Sources/GalleryVC/GalleryPresentationAnimationController.swift +++ b/Packages/GalleryVC/Sources/GalleryVC/GalleryPresentationAnimationController.swift @@ -86,8 +86,8 @@ class GalleryPresentationAnimationController: NSObject, UIViewControllerAnimated itemViewController.setControlsVisible(false, animated: false) let duration = self.transitionDuration(using: transitionContext) - // rougly equivalent to duration: 0.4, bounce: 0.3 - let spring = UISpringTimingParameters(mass: 1, stiffness: 247, damping: 22, initialVelocity: .zero) + // rougly equivalent to duration: 0.35, bounce: 0.3 + let spring = UISpringTimingParameters(mass: 1, stiffness: 322, damping: 25, initialVelocity: .zero) let animator = UIViewPropertyAnimator(duration: duration, timingParameters: spring) animator.addAnimations {