I implemented a Swipe to Delete feature, which generally works well. However, it consistently removes two items at a time instead of just one.
I suspect the problem is due to the fact that the tutorial I followed used a LazyColumn with the items() function, which allowed them to initialize a key parameter to solve the problem.
In my case, I display groups of items within LazyColumn, and each group is represented by a column for each day containing individual items. Since columns do not have items() function, I have used foreach instead. As a result, there are no key parameters available, making it difficult to address the problem.
Any advice on how to resolve this issue would be greatly appreciated.