1

in one of my SwiftUI views I have this Navigation link

 NavigationLink(destination: SomeView(), isActive: .constant(true)) {
 }.hidden()

and I also disabled the navigation bar on all my views.

The NavigationLink is rendered if a certain condition is true. The navigation itself works just fine, but if I swipe from the left border of the screen to the right, the old view is still there. How can I completely destroy the previous view after navigation to the next?

I also cannot use a button to navigate so there is no possibility to call additional code before navigation.

Erik Bender
  • 755
  • 1
  • 6
  • 13

0 Answers0