Why is the parent view’s onDisappear() invoked?
In the code below, if I click a row, Hello
, in the List, the List’s onDisappear()
is invoked, as indicated by the trace, onDisappear called!
. Is this expected? The behavior is inconsistent, however; I have similar code but without onDisappear
being called. It appears to be caused by some random combination of ForEach
and NavigationLink
.