SectionedFetchRequest, List, Section, ForEach: NavigationLink deactivates when a change in the data causes the row to move between sections

Originator:indiekiduk
Number:rdar://FB9977102 Date Originated:8/4/22
Status:Open Resolved:No
Product:SwiftUI Product Version:Xcode 13.3
Classification:Bug Reproducible:Always
 
NavigationLink deactivates when a change in the data causes the row to move between sections. It doesn't deactivate when the row moves within the section. See more info and a sample project here:

https://stackoverflow.com/questions/71780436/swiftui-dismisses-the-detail-view-when-an-nsmanagedobject-subclass-instance-chan/71782994

Comments

Closing comment

Thanks, I modified the sample project to use NavigationStack and that appears fine. However, when I tried to use NavigationSplitView there is a table row deselection bug. I'll submit that as another feedback however I thought I would attach the project and a screen-capture so you can see it.

https://youtube.com/shorts/On_8alWwox8?feature=share

By indiekiduk at Nov. 15, 2022, 3:27 p.m. (reply...)

Apple Feedback 10 Nov 2022 at 9:24pm

Thanks for your feedback. This looks like an issue that you need to resolve.

And, this can be resolved by using the new Navigation APIs to avoid the view identity issues described.

Please close this report if resolved, or let us know if still an issue for you.

Thank you.

By indiekiduk at Nov. 15, 2022, 3:27 p.m. (reply...)

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!