SwiftUI view body invoked in infinite loop

I am observing infinite loop of view creation, deletion, and recreation when I move my app to background and bring back to foreground. I am clueless what is causing this repeated invocation of view body, so I tried Self._printChanges() inside the view body . But all I get is the following in console.

ChildView: @ self , _dismiss changed. //<--- This is the problematic view
ParentView: unchanged. //<--- This is parent view

The issue has also been reported on Apple developer forums but no solution found.

What are other options to debug this issue?

Hi! Do you get the same result using NavigationView?

SwiftUI view body invoked in infinite loop
 
 
Q