Skip to content

Commit

Permalink
🐞 Fix: ModalSheetPresentationStateMachine + .dismissingViaGesture…
Browse files Browse the repository at this point in the history
… State
  • Loading branch information
dominicstop committed Sep 29, 2024
1 parent 1161634 commit 2b19648
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions ios/Temp/ModalSheetPresentationStateMachine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ public class ModalSheetPresentationStateMachine {
};
#endif

var isIllegalState = false;

/// Don't allow:
/// * `dismissingViaGesture` -> `dismissing`
/// * `dismissViaGestureCancelling` -> `presenting`
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2b19648

Please sign in to comment.