Skip to content

Commit

Permalink
💫 Update: RNIModalView
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Apr 30, 2023
1 parent 93fd772 commit dc9842d
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions ios/src_library/React Native/RNIModalView/RNIModalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@ public class RNIModalView:
self.presentingViewController = nil;
};


private func notifyIfModalDismissCancelled(){
guard let modalVC = self.modalVC,
let transitionCoordinator = modalVC.transitionCoordinator
Expand All @@ -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`
///
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit dc9842d

Please sign in to comment.