UICollectionViewListCell's multi select accessory not displayed

I try to use a multiselect accessory, here is my cell registration:

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


Oops, finally I found the property isEditing on collectionView...
UICollectionViewListCell's multi select accessory not displayed
 
 
Q