I am testing out Asperi's great answer to reordering cells:
SwiftUI | Using onDrag and onDrop to reorder Items within one single LazyGrid?
The issue I have is the overlay does not reset when I simply enter drag mode and then drop in place, see cell 3:
I am using the exact code as found on the answer. So it seems like this line:
.overlay(dragging?.id == d.id ? Color.white.opacity(0.8) : Color.clear)
is not reacting properly?
Any idea how I can make the overlay to update and go back to clear
?