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, delete).
I knew this was possible because oft he existence of trailingSwipeActionsConfigurationProvider but I didn’t realize that this is only for list layouts, created with UICollectionViewCompositionalLayout.list
.
But if I use this 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?