SwiftfulRouting
SwiftfulRouting copied to clipboard
dismissScreenStack working from root screen only once
I needs to realise the functionality make possibility close all child screens in screen stack by event
The best way it's to make a catch an event on the root screen and call router.dismissScreenStack() from the root view
The first call is working properly, but the second call of router.dissmissScreenStack() and any another not working with error: 🕊️ SwiftfulRouting 🕊️ -> Failed to dismiss screens screenStack. Could not find user's active screens.
Could you, please release the functionality to dissmiss the screens stack from root screen, not only from top screen in stack
Hi, maybe it is a problem with your implementation? When I use the Sample project, I can dismissScreenStack multiple times and it is working as expected.
Can you provide sample code for your problem?
Sure, becouse the call dismissScreenStack() in your example project calling from the top level screen in navigation stack.
In my project i needs dismiss all screens in stack by tapping in tab bar button. By this reasone i needs call the dismissScreenStack() from main (bottom) screen in navigation stack. In this case the first call is working propertly, but second call does not working.
Please find the example code in the attached archive. The button "Call dissmissScreenStack()" imitates the tabbar with one tab )
Please make the text steps:
- Tap "Open detailedView" on the main screen
- Tap on "Call dismissScreenStack()" button
- See the dismissScreenStack() is working propertly
- Tap "Open detailedView" again
- Tap on "Call dismissScreenStack()" button
- dissmissScreenStack() does not working and we get the error message on the log
HI @SwiftfulThinking : Can you look into this issue plz. As said by @edementiev: This is not working for the second time. Hoping the solution soon.
Thanks @edementiev for finding this bug and for the example project - it helped a lot. This is now fixed in release 5.3.5.
Feel free to re-open this issue if the problem persists 🤙