In apples SwiftUI code tutorial called BuildingListsAndNavigation, they show you how to use NavigationLinks. However, once you click the link then hit the navigation back button, the same link is disabled till you hit another link, then hit the back button again.
This issue doesn't just happen with apple's SwiftUI tutorial, it happens in my own SwiftUI projects as well. How do I make it so I can click the same link twice in a row?
Here is some example code
struct LandmarkList: View {
var body: some View {
NavigationView {
List(0 ..< 5) { number in
NavigationLink(destination: Text("next page")) {
Text("Row\(number)")
}
}
.navigationBarTitle(Text("Landmarks"))
}
}
}