Skip to content
Discussion options

You must be logged in to vote

Hi @bohdany-cricut,

In that case, the child feature dismissing itself made a lot of sense, so I didn’t have to manually nil out the destination in the second case.

Then you may want to provide some configuration to the child feature so that it knows if it is responsible for dismissing itself or not. That would get around the issue too.

For example, if in the sample project you change from fullscreen to navigation on the line 68 - then all works flawlessly - the first feature dismisses itself before the second one is presented (and ParentFeature.Action.destination(.dismiss) is not called).

That is happening because the act of changing destination to a different case cancels the effects…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bohdany-cricut
Comment options

@mbrandonw
Comment options

Answer selected by bohdany-cricut
@bohdany-cricut
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants