I have a List with a bound selection field. The list is populated with a ForEach loop (outline code below)
@State private var editMode = EditMode.inactive
@State private var selectedItems = Set<Int>()
List (selection: $selectedItems) {
ForEach (myObjects.indices, id:\.self) { idx in …….
Button(…)
}
}
A toolbar action toggles the list edit status by manipulating the editMode parameter. Visually the list shows rows being selected, however the selectedItems field is never updated.
This works as expected in iOS15.5 - only an issue in iOS16 Betas (up to 3 currently) I've also logged Feedback Assistant but thought I'd also post here in case I'm missing something? Thanks