Skip to content

Commit

Permalink
🐞 Fix: ModalViewControllerEventsNotifiable.notifyOnModalDidDismiss
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Sep 30, 2024
1 parent 69f3c87 commit 3d40194
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ios/Temp/ModalViewControllerLifecycleNotifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ open class ModalViewControllerLifecycleNotifier: ViewControllerLifecycleNotifier

transitionCoordinator.notifyWhenInteractionChanges { context in
guard !context.isCancelled else {
self.isExplicitlyBeingDismissed = false;
return;
};

Expand Down Expand Up @@ -123,4 +124,15 @@ open class ModalViewControllerLifecycleNotifier: ViewControllerLifecycleNotifier
);
};
};

// MARK: - Methods
// ---------------

open override func dismiss(
animated flag: Bool,
completion: (() -> Void)? = nil
) {
self.isExplicitlyBeingDismissed = true;
super.dismiss(animated: flag, completion: completion);
}
};

0 comments on commit 3d40194

Please sign in to comment.