Form + ForEach Failing to Update NavigationLink Destination

Originator:sahand
Number:rdar://FB8936188 Date Originated:12/10/2020
Status:Open Resolved:
Product:SwiftUI Product Version:
Classification: Reproducible:Yes
 
I have attached an minimum-setup example project that replicates an issue where the destination of a NavigationLink is not receiving an update when a Binding is changing.

This setup mirrors a dynamic application where a ForEach is used to display various NavigationLinks in the Form based on parent data. Weirdly enough, this works if you replace Form with VStack, so I’m curious why this isn’t updating. 

Expected behavior: Checkmarks should update when you pick a different food. 
Observed behavior: You can see the favorite food changing outside the NavigationLink Destination, but not inside.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!