diff --git a/ios/Temp/ModalSheetViewControllerLifecycleNotifier.swift b/ios/Temp/ModalSheetViewControllerLifecycleNotifier.swift index 2c365cd3..9e4ffe6c 100644 --- a/ios/Temp/ModalSheetViewControllerLifecycleNotifier.swift +++ b/ios/Temp/ModalSheetViewControllerLifecycleNotifier.swift @@ -39,6 +39,7 @@ open class ModalSheetViewControllerLifecycleNotifier: ViewControllerLifecycleNot public override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated); + self.setupSheetGestureIfNeeded(); }; // MARK: - Setup @@ -55,14 +56,14 @@ open class ModalSheetViewControllerLifecycleNotifier: ViewControllerLifecycleNot self.presentationControllerDelegateProxy = self; }; - self._setupSheetGesture(); - presentationController.delegate = self; self._didSetup = true; }; - private func _setupSheetGesture(){ - guard let closestSheetPanGesture = self.closestSheetPanGesture else { + public func setupSheetGestureIfNeeded(){ + guard self.sheetGesture == nil, + let closestSheetPanGesture = self.closestSheetPanGesture + else { return; };