Skip to content

Nested tree-based navigation issue #3007

Closed Answered by mbrandonw
teamboot88 asked this question in Q&A
Discussion options

You must be logged in to vote

In this nested form of navigation, when replacing the destination from an ancestor (more than two levels deep, not the parent), it is suspected that the event of dismissing the destination of the child, PhotoPicker, is triggered, resulting in the above warning.

Hi @teamboot88, this is happening due to bugs in SwiftUI navigation. When you dismiss two presented features at once, the intermediate view incorrectly writes nil to its binding, causing a .dismiss action to be sent when it should not.

Is it safe to ignore this warning?

Yeah, for this particular situation it is ok to ignore because it is sadly just a SwiftUI bug.

If you have any advice on the correct approach for dismissing mu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@teamboot88
Comment options

Answer selected by teamboot88
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