swiftui-deep-link

SwiftUI deep linking with NavigationLink inside List onAppear with tag: and selection: doesn't activate link

你。 提交于 2020-06-29 04:30:07
问题 Trying to build deep linking into a list of NavigationList items; I will be reading a value on the SwiftUI view's .onAppear and based on that value, navigate to a specific cell. There are three issues that come up with different setups I have tried: (1) with the below code, navigation doesn't happen at all, (2) if it does navigate, it will immediately pop back, (3) if programmatic navigation works and it doesn't pop back, the manual navigation doesn't work. I have tried this with a Binding