SwiftUI NavigationLink not respecting isActive binding in iOS 17
I'm working with an scenario with `NavigationLink` in SwiftUI, where the `isActive` binding doesn't seem to work as expected in iOS 17. I have a view that displays a list of items, and tapping on an item should navigate to a detail view based on a boolean state. However, even when the `isActive` state is set to true, the navigation does not occur, and I get no errors or indications of what might be wrong. Here's a snippet of the code I am working with: ```swift struct ItemListView: View { @State private var selectedItem: Item? @State private var isDetailActive = false var body: some View { NavigationView { List(items) { item in Button(action: { self.selectedItem = item self.isDetailActive = true }) { Text(item.name) } } .background( NavigationLink(destination: DetailView(item: selectedItem), isActive: $isDetailActive) { EmptyView() } ) } } } ``` I have tried a couple of things to debug the scenario: 1. Ensuring that the `selectedItem` is being set correctly when the button is tapped. 2. Moving the `NavigationLink` outside of the background and into the main view hierarchy, but that resulted in the view becoming stale and not reflecting the latest `selectedItem`. 3. Wrapping the `NavigationLink` in a `Group`, but that didn't resolve the navigation scenario either. I even checked the SwiftUI documentation for `NavigationLink` and `isActive`, and it appears that I am using them correctly. I am testing this on iOS 17, and the question continues on both the simulator and physical devices. Any help or insights into what might be going wrong would be greatly appreciated!