Cannot drag cell into empty section collection view

I have a collection view with two sections. You can drag cells between both sections. However, if you drag from a section with only one cell to the other, you then cannot drag back into the empty section. It seems trivial since I cannot find anything mentioning this issue, what am I missing here?

Add a Comment

Replies

Same problem. Trying to create invisible cells in empty sections when a drag & drop session starts.

That's an old problem, which is unfortunate.

But there is a workaround: create an empty cell, not visible, in each section, so it will never be empty…

Details here:

https://stackoverflow.com/questions/35920874/swift-unable-to-long-press-drag-cells-to-empty-sections-in-uicollectionviewcont

If you have section headers (SupplementaryViews), you can check my solution on SO:

https://stackoverflow.com/a/77380175/2265618