Closed fcbmojtaba1995 closed 6 years ago
You need to pass selectedIems as an array to show default selection.
Can you give an example?
@fcbmojtaba1995
` // set default selected items when menu present on screen. // Here you'll get onDidSelectRow
selectionMenu.setSelectedItems(items: simpleSelectedArray) { (text, isSelected, selectedItems) in
// update your existing array with updated selected items, so when menu presents second time updated items will be default selected. self.simpleSelectedArray = selectedItems } `
see example for more details.
Thank for library. How to set item default selected in single selection?