Problems Implementing Drag Drop In LazyColumn
I am trying to implement drag-and-drop reordering in a LazyColumn in a Compose app. I am using a ViewModel and a Room database to store the values. While I have successfully implemented the drag-and-drop feature, the items in the list are being swapped arbitrarily, and their positions change unexpectedly after swapping two items. Any help would be appreciated.