From dc9842de9e35093783bcd7cd2e65c5dc5f4d53eb Mon Sep 17 00:00:00 2001 From: Dominic Go <18517029+dominicstop@users.noreply.github.com> Date: Mon, 1 May 2023 06:08:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20Update:=20`RNIModalView`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RNIModalView/RNIModalView.swift | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/ios/src_library/React Native/RNIModalView/RNIModalView.swift b/ios/src_library/React Native/RNIModalView/RNIModalView.swift index 26db1bf6..ac1e7530 100644 --- a/ios/src_library/React Native/RNIModalView/RNIModalView.swift +++ b/ios/src_library/React Native/RNIModalView/RNIModalView.swift @@ -619,7 +619,6 @@ public class RNIModalView: self.presentingViewController = nil; }; - private func notifyIfModalDismissCancelled(){ guard let modalVC = self.modalVC, let transitionCoordinator = modalVC.transitionCoordinator @@ -643,24 +642,6 @@ public class RNIModalView: }; }; - @objc private func handleGestureRecognizer(_ sender: UIPanGestureRecognizer) { - print( - "Test - handleGestureRecognizer - \(sender.state.description)" - ); - - if case .ended = sender.state { - self.modalVC?.transitionCoordinator?.animate(alongsideTransition: {_ in}) { - print( - "Test - handleGestureRecognizer" - + " - transitionCoordinator.animate" - + " - isCancelled: \($0.isCancelled)" - + " - percentComplete: \($0.percentComplete)" - + " - isInteractive: \($0.isInteractive)" - ); - }; - }; - }; - /// `TODO:2023-03-22-12-07-54` /// * Refactor: Move to `RNIModalManager` /// @@ -1151,10 +1132,6 @@ extension RNIModalView: RNIViewControllerLifeCycleNotifiable { self.modalPresentationNotificationDelegate .notifyOnModalWillShow(sender: self); }; - - if self.modalPresentationState.isInitialPresent { - self.setupOnModalInitialPresent(); - }; }; public func viewDidAppear(sender: UIViewController, animated: Bool) {