mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Best effort attempt at cleaning up the WindowManger registered coordinators.
This commit is contained in:
committed by
Stefan Ceriu
parent
e080c7d35a
commit
d4e3b11486
@@ -89,7 +89,11 @@ class WindowManager: SecureWindowManagerProtocol {
|
||||
return AnyView(InstantlyDismissingWindow())
|
||||
}
|
||||
|
||||
return coordinator.toPresentable()
|
||||
// This behaves strangely and gets called late but cleans up enough
|
||||
// and is self contained enough to be just good .. enough
|
||||
return AnyView(coordinator.toPresentable().onDisappear { [weak self] in
|
||||
self?.coordinators[type] = nil
|
||||
})
|
||||
}
|
||||
|
||||
func handleRoute(_ appRoute: AppRoute, windowType: WindowManagerWindowType) {
|
||||
|
||||
Reference in New Issue
Block a user