I am changing the contents of tableviewsInset so that when the user scrolls to the top of the table, the tableview is an insert to display the UISearchBar hidden above the table view.
Everything works fine except for section headers. when scrolling down, the upper border of the HeaderView section is inserted at the same distance from the top of the screen as my table insert, here it is in the starting position:

In the above image, the sequencer view is in its correct position, and the insertion of the lookup table has been displayed in the search field.

You can see in this second screenshot where the upper border of the headerview is set lower due to the 43-pixel insertion of the table, where it should adhere to the top of the screen, hiding the "related" cell and bouncing back when released,
I think I need to somehow shift the insert, I'm just not sure how ..
Alex source share