Skip to content

ScrollTo lastMessage behavior issueΒ #1079

@drichard-luna

Description

@drichard-luna

Hello,
When I opened a Chat, it fully scrolled to the bottom of the MessageListView, showing the last message and the vertical padding. It was great because it leaves room for the TypingIndicatorBottomView.
Since the 4.89.0 (especially this PR), the scrollTo behavior for the lastMessage became a scrollTo(anchor: .top) (so a reversed anchor bottom), which then aligns the scroll exactly to the last message's bottom. It means it doesn't show the vertical padding and doesn't leave much room for the TypingIndicatorBottomView

Here is the appearance of the ChatView after opening it (which triggers a scrollToLastMessage), while someone is typing a message:

Before 4.89.0 After 4.89.0
Image Image

Is this the wanted behavior by StreamChat? Or is it an unwanted issue/regression?

GetStream Environment

GetStream Chat version: Fork
GetStream Chat frameworks: StreamChat 4.95.1, Fork of StreamChatSwiftUI (merged with 4.95.1)
iOS version: 18.5 and 26.0
Swift version: 5
Xcode version: 26.0
Device: iPhone 16 (emulator) and iPhone 17 (emulator)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions