diff --git a/ios/Temp/ModalEventManager/ModalEventsManager.swift b/ios/Temp/ModalEventManager/ModalEventsManager.swift index 2d218d9..e9ef256 100644 --- a/ios/Temp/ModalEventManager/ModalEventsManager.swift +++ b/ios/Temp/ModalEventManager/ModalEventsManager.swift @@ -144,6 +144,8 @@ public final class ModalEventsManager { modalEntries.otherModals?.forEach { $0.setModalFocusState(.blurred); }; + + eventManager.modalRegistry.removeEntry(forViewController: modalVC); }; }; diff --git a/ios/Temp/ModalEventManager/ModalRegistry.swift b/ios/Temp/ModalEventManager/ModalRegistry.swift index 27aec53..748bbbb 100644 --- a/ios/Temp/ModalEventManager/ModalRegistry.swift +++ b/ios/Temp/ModalEventManager/ModalRegistry.swift @@ -70,7 +70,7 @@ public class ModalRegistry { public func getEntriesSorted() -> [ModalRegistryEntry] { self.registry.values.sorted { - $0.modalFocusIndex > $1.modalFocusIndex; + $0.modalFocusIndex < $1.modalFocusIndex; }; };