Hello,
I am trying to learn Swift. I have the code below.
With a button click I can move to a new view. What I would like to do is once the new view is displayed have the navigation link destination changed to "CurrentView" and the button text to "Previous View".
Any insight on how to resolve this issue would be appreciated.
Regards,
Chris
import SwiftUI struct ContentView: View { var body: some View { NavigationView { NavigationLink(destination: NextContentView()){ Text("Next View") } } } }