8000 External header for chat scrolls to last message · Issue #197 · exyte/Chat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
External header for chat scrolls to last message #197
Open
@ivuninmk

Description

@ivuninmk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0