New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal ViewController is not dismissed when presented using overCurrentContext style #46
Comments
@0rtm Thank you. Ill try to have a look asap. If you can give me some insight or you know the the potential fix - please let me know. |
Looks like this has something to do with a view controller being inside of tabbar. |
@0rtm Yeah it seems so, I tried to remove such viewController manually and got no result. It seems that it is impossible to hide multiple view controllers is one go if one of them is |
@0rtm I had a proper look today and it seems that it is not exactly a bug.
Unfortunately it cant be fixed on a generic level and seems to be the expected behaviour. If you plesent the view controller over current context from the child view controller But if you present your view controller from the root view controller which in this case defines presentation context- it is being integrated properly in to the view controller stack and then it works as expected. You can try it yourself:
(See https://github.com/ekazaev/route-composer#troubleshooting) So if it is something that you need to do you will have to do it manually unfortunately. But the good news is that it is simple. You can create your own implementation of the Meanwhile ill think about the something generic to handle it. My be will add a flag to the default modal presentation action or implement it myself and add it to the library. Also, if you can describe me what for do you use the |
I have the following use case. |
@0rtm Interesting approach. What if instead you'll create a custom presentation controller On other hand, I've added an ability to control starting point of the modal presentation and as soon as all the checks are done I will release a new version of the library. |
@0rtm Version 2.5.2 is released. The ability to select presenting view controller was added to the modal presentation action. You can try it out. |
When a
ViewController
is presented modally usingoverCurrentContext
style, it is not dismissed byroute-composer
when further navigation happens.Problem happens only if I use modal presentation over current context
In case if same
DestinationStep
usesfullScreen
instead ofoverCurrentContext
presentation style the issue does not occur.Link to the repo with issue: https://github.com/0rtm/RouteComposerBug
Steps to reproduce:
Modal screen with 2 buttons should disappear. As if you run:
The text was updated successfully, but these errors were encountered: