SwiftUI: Can't get the transition of a DetailView to a ZStack in the MainView to work
问题 I can't find the answer to this anywhere, hopefully one of you can help me out. I have a MainView with some content. And with the press of a button I want to open a DetailView. I am using a ZStack to layer the DetailView on the top, filling the screen. But with the following code I can't get it to work. The DetailView does not have a transition when it inserts and it stops at removal. I have tried with and without setting the zIndex manually, and a custom assymetricalTransition. Couldn't get