From 2b1964879f57fe7d5778710d0ffe77148271ff70 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Mon, 30 Sep 2024 05:57:21 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Fix:=20`ModalSheetPresentationSt?= =?UTF-8?q?ateMachine`=20+=20`.dismissingViaGesture`=20State?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Temp/ModalSheetPresentationStateMachine.swift | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ios/Temp/ModalSheetPresentationStateMachine.swift b/ios/Temp/ModalSheetPresentationStateMachine.swift index 840f72a8..ed0d57dd 100644 --- a/ios/Temp/ModalSheetPresentationStateMachine.swift +++ b/ios/Temp/ModalSheetPresentationStateMachine.swift @@ -150,8 +150,6 @@ public class ModalSheetPresentationStateMachine { }; #endif - var isIllegalState = false; - /// Don't allow: /// * `dismissingViaGesture` -> `dismissing` /// * `dismissViaGestureCancelling` -> `presenting` @@ -298,13 +296,10 @@ extension ModalSheetPresentationStateMachine: ModalSheetViewControllerEventsNoti }; }; - // TODO: Rename to `notifyOnSystemSheetPanGestureInvoked` - public func notifyOnSytemSheetPanGestureInvoked( + public func notifyOnSheetBeingDraggedByPanGesture( sender: UIViewController, - panGesture: UIPanGestureRecognizer, - gesturePoint: CGPoint + panGesture: UIPanGestureRecognizer ) { - switch panGesture.state { case .began, .changed: self.isSheetPanGestureActive = true;