I'm working on a UICollectionView
that has a custom compositional layout with multiple columns. I wanted to add swipe actions to the cells (specifically, a delete action).
I knew this was possible because of the existence of trailingSwipeActionsConfigurationProvider but I didn't realize that this is only for list layouts, created with UICollectionViewCompositionalLayout.list.
But if I use a list layout, I don't think I have any opportunity to add multiple columns. Do I really have to choose between multiple columns and trailing swipe actions? Or is there some way to get both?