I think the issue was by ths following , In your cellForRowAtIndexPath you can't be configuring the cell properly when the cell gets reused. You should always be setting (and resetting) all of the properties of the cell from your data model.
Adding a sliding view to a table cell when selected
By : Anshu Anand
Date : March 29 2020, 07:55 AM
seems to work fine You would use a UITableViewCell subclass with a foreground and a background view and a UIPanGestureRecognizer. this recognizer will trigger the swipe and handles the moving of the foreground view. that said, you'll find a implementation here: https://github.com/spilliams/sparrowlike