I try to use a multiselect accessory, here is my cell registration:
I can't get it working. The multiselect accessory is never displayed.
I have added in viewDidLoad:
Code Block let cellRegistration = UICollectionView.CellRegistration<UICollectionViewListCell, Item> { (cell, indexPath, item) in switch item { case let .text(text): var config = cell.defaultContentConfiguration() config.text = text cell.contentConfiguration = config } cell.accessories = [.multiselect(displayed: .whenEditing)] }
I can't get it working. The multiselect accessory is never displayed.
I have added in viewDidLoad:
Code Block self.navigationItem.rightBarButtonItem = self.editButtonItem collectionView.allowsMultipleSelectionDuringEditing = true