Multiline
In this case, the 🌟 SubView gets caught in an infinite loop regardless of which SubView is called. If you comment out the 🌟🌟 "@Environment(.dismiss) private var dismiss" line, it seems to work properly.
I have exactly the same problem on iOS 16.4.1, the app becomes unresponsive if the navigation stack is about to present the view that uses the view that uses the @Environment(.dismiss) property.
If I comment it out or I use instead the old API @Environment(\.presentationMode) var presentationMode then the issue is not present.
I don't use Google AdMob, so for sure it is not related to the problem.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: