Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SwiftUI navigationLink not working after dismissing destination from the stack

I haven't noticed this before, so it may be a bug with the new release.

When I click on a NavigationLink, everything works as expected. Then I can click the back button (which I have done with the default back button as well as a custom back button) and it still works. If I try to click the same NavigationLink again, it does not trigger the destination. I can click on a different NavigationLink, and it will work, and when I go back the first link is functional again. Only the last link is unavailable.

This seems to be the case in lists, forms, and free navigation links.

Has anyone encountered this functionality? Is there a fix for it?

Working on Xcode Version 11.3 (11C29)

Thank you for your help.

like image 994
Jason Moore Avatar asked Dec 12 '19 00:12

Jason Moore


1 Answers

After a lot of searching and testing, this appears to be a bug specific to the simulator in the new release. When running the app on my phone it works perfectly. Hopefully it is fixed soon, but for now I can run testing on the phone.

like image 52
Jason Moore Avatar answered Oct 24 '22 10:10

Jason Moore