It seems that when used in an inactive tab, the headerView doesn't seem to correctly redraw when the tableView is reloaded.
Here's a precise example.
In this first case (correct behaviour), I scroll down the down the table, and the headerView (the faces and dates) begin to scroll and I let the headerView hidden at half its height. If I click on another face while staying in the same tab, the table is reloaded, and the headerView correctly position itself at its original position, full size.

In the second case (wrong behaviour), I scroll down the table at the same position, then I CHANGE TAB, click on another face (which trigger the same refresh function on every tab via the NotificationCenter), then if I go back to the previous tab, the headerView is at the correct position, but is strangely clipped!.

The only/ugly workaround I found is to force redraw by doing this:
subjectsAndPeriodView.maximumContentHeight += 1
subjectsAndPeriodView.maximumContentHeight -= 1
Any advice on how to trigger the redraw correctly?
Thanks!
It seems that when used in an inactive tab, the headerView doesn't seem to correctly redraw when the tableView is reloaded.
Here's a precise example.
In this first case (correct behaviour), I scroll down the down the table, and the headerView (the faces and dates) begin to scroll and I let the headerView hidden at half its height. If I click on another face while staying in the same tab, the table is reloaded, and the headerView correctly position itself at its original position, full size.

In the second case (wrong behaviour), I scroll down the table at the same position, then I CHANGE TAB, click on another face (which trigger the same refresh function on every tab via the NotificationCenter), then if I go back to the previous tab, the headerView is at the correct position, but is strangely clipped!.

The only/ugly workaround I found is to force redraw by doing this:
Any advice on how to trigger the redraw correctly?
Thanks!