MortimerGoro / MGSwipeTableCell

An easy to use UITableViewCell subclass that allows to display swippable buttons with a variety of transitions.
MIT License
6.96k stars 1.07k forks source link

problem on reuse cell after "fillOnTrigger" #265

Open AlexanderStepanov opened 7 years ago

AlexanderStepanov commented 7 years ago

Hello! thank you so much for this project - it is very helpful for us!

I'm using left expansion for done button - it removes cell from table view using tableView.deleteRows and "fillOnTrigger". Trying to reuse cell with "dequeueReusableCell" but sometimes I get empty cells (it is cells which was previously "done" by swipe) If I remove "fillOnTrigger" - everything works fine. I think it is related to offsets somehow. I've explored controls in debug mode and they have necessary values but I can't see them on cell. Also I've tried to change offset manually - it wasn't help.

Could you please suggest me workaround for this?

And second question: it is possible to disable "leftExpansion" after adding it? Some of my cells shouldn't have it but they does due to inherited cell.

Thanks and regards, Alex

AlexanderStepanov commented 7 years ago

I've added some tag on item completion and when reusable cell contains this tag - I create new one. It is my workaround.