SwiftUI with a List plus multi selection and showing an alert is not going well. Selection bounded to a published property on an ObservableObject. Showing an alert causes the list toggle its edit mode, which clears the list of selected items. #swiftui

apparently the fix is to use .environment modifying. Example

.environment(\.editMode, $manager.editMode)
binding the editMode to a variable instead.