I am currently in the process of creating a UITableView
with a UITableViewHeader
. This UITableViewHeader
is a HeaderView for the first section of my UITableView
which has the ability to expand or collapse. It shows filters to narrow down what is shown in the UITableView
.
It currently all works great, expanding the UITableViewHeader
works nicely, but as soon as I collapse the UITableViewHeader
(I animate two bottom constraints to true & false to collapse the UITableViewHeader
), the cells that are not visible at first (so the ones that are off-screen) don't animate, they just "come in place" as soon as I hit the button.
I am now wondering if it is possible to make sure these cells also follow the animation, so they kind of "slide up" from underneath the bottom of the screen rather than just fall in place directly. The animation takes 0.25 seconds, so the cells are visible 0.25 seconds too soon let's say.
Any ideas?