From 924e7614bda7a4de79683f5b07647ab9a7282f51 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Sun, 21 Feb 2021 16:13:18 -0800 Subject: [PATCH] Reduce dismiss threshold --- Transitions/ZoomDismissalInteractionController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Transitions/ZoomDismissalInteractionController.swift b/Transitions/ZoomDismissalInteractionController.swift index 8edf0a1..3a3b0e2 100644 --- a/Transitions/ZoomDismissalInteractionController.swift +++ b/Transitions/ZoomDismissalInteractionController.swift @@ -25,7 +25,7 @@ final class ZoomDismissalInteractionController: NSObject { fromReferenceView.isHidden = true let anchorPoint = CGPoint(x: fromReferenceViewFrame.midX, y: fromReferenceViewFrame.midY) - let dismissThreshold = fromReferenceViewFrame.height / 8 + let dismissThreshold = fromReferenceViewFrame.height / 10 let translatedPoint = gestureRecognizer.translation(in: fromReferenceView) let backgroundAlpha = backgroundAlphaFor(view: fromVC.view, withPanningVerticalDelta: translatedPoint.y)