Description
Hello, i have an issue with adding custom header for chat. mainHeaderView is not appropriate cause it is section-based, but i need only 1 per table (+support scrolling in one scrollView).
I made a closure var tableHeader: (() -> AnyView)?
and added to UIList/Chat view
In a TableView layout i set tableView.footerView = tableHeader (table invertion considered).
That works fine, but...
Problem:
TableView always scrolls to last message when updated (tableView.reloadData()) ignoring the header, but i need this behavior is customizable.
In most cases i want to start with Header. Tried to remove the scroll notification, and force setContent(.zero) but it still scrolls somehow. I have a big Header (1000px+ height)
Can you help with the issue, please?