Missing `List` multi-select checkmarks

Originator:darren.mo
Number:rdar://FB13434460 Date Originated:2023-12-02
Status:Open Resolved:
Product:SwiftUI Product Version:iOS 17.2 Seed 3 (21C5046c)
Classification:Incorrect/Unexpected Behavior Reproducible:Always
 
I have a `List` use case that requires rows to be nonselectable when edit mode is inactive but allows for multiple selection when edit mode is active. I have attached a sample project demonstrating this use case. In the sample project, I pass the selection binding to the `List` only if edit mode is active; otherwise, I pass `nil` to the `List`’s `selection` parameter. This triggers a bug in SwiftUI where the `List` no longer shows its multi-select checkmarks when edit mode is active.

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!