MGSwipeTableCell icon indicating copy to clipboard operation
MGSwipeTableCell copied to clipboard

Animation issues with transparent cell background

Open davidganster opened this issue 8 years ago • 1 comments

Hi @MortimerGoro, many thanks for this great library.

When I use the contentView to constrain my views, the animation when the cell is returning to its original position is incorrect. My cells have a clear background color, so you can see the 'original' content below the snapshotted view as it returns to the original position.

I tried using the swipeContentView in combination with autolayout, but that doesn't seem to work - probably because swipeContentView is regularly removed and re-added in its lifecycle, so the constraints of its subviews are removed as well.

Is there any way to use interface builder/autolayout while having a clear background color?

davidganster avatar Nov 23 '16 15:11 davidganster

Nevermind, I figured out the problem. The tableview was reloading the swiped cell, which lead to the content resetting and being drawn.

I'm facing a new issue though, which I've tried to debug for hours now: After a button has been triggered by expanding it, the animation back to its hidden state is not smooth. It first expands down to its non-expanded state, and then animates away fully.

Looking at the code, it seems a smooth animation is very hard to accomplish since the expansion and transition are handled somewhat differently?

davidganster avatar Nov 23 '16 19:11 davidganster