TimOliver / TOInsetGroupedTableView

An iOS 11 back-port of the grouped inset table view style in iOS 13.
MIT License
80 stars 11 forks source link

Create a more elegant look for "swipe-to-delete" #1

Open TimOliver opened 4 years ago

TimOliver commented 4 years ago

While passable, the visual look if the user swipes on a cell and the delete button appears looks quite messy.

On iOS 13, the delete button is also wrapped inside the clipping bounds of the rounding mask, but replicating this look in iOS 12 might require more UIView hacking than is actually worth it.

I'm making a note of this now, and when I actually get to a point in my production code when I need it, I'll revisit it.

TimOliver commented 4 years ago

Jotting this down so I don't forget.

Knowing these, it should be possible to intercept both the start and stop events, and encapsulate the cell and the swipe view in clipping view for the duration.