CollectionView cell swapping after longPressure

I create a new process for the drag n drop to swap Cell.

it's working but I would like to create a background at the initial Cell after moving it, instead of blank cell. Thanx for your response

To be sure I understand.

  • Initially, "Rasperry PI en entreprise" was on the right.
  • You drag to the left
  • You want to see some background at the former place of the dragged cell

Exact ?

id you try changing the background color of this cell at start of dragging, in isSelected (you may have to subclass UICollectionViewCell) ?

Or simpler, why not change background of all cells. The only visible one will be the one that is moving.

CollectionView cell swapping after longPressure
 
 
Q