X Tutup
Skip to content

Added scrollToBottom() method in MessagesCollectionView#1875

Merged
martinpucik merged 2 commits intoMessageKit:mainfrom
Piggyback13:main
Feb 27, 2026
Merged

Added scrollToBottom() method in MessagesCollectionView#1875
martinpucik merged 2 commits intoMessageKit:mainfrom
Piggyback13:main

Conversation

@Piggyback13
Copy link
Contributor

What does this implement/fix? Explain your changes.

I added the method scrollToBottom(animated:) to scroll down the MessagesCollectionView to the bottom including section inset at the bottom between last message cell and MessagesCollectionView bottom
The issue is described here issue #1874

Does this close any currently open issues?

Yes, issue #1874

Screen Recording:

CorrectScrollToBottom.mp4

Where has this been tested?

Devices/Simulators: Simulator iPhone 13 iOS 17.0

iOS Version: iOS 17.0

Swift Version: Swift 6.0

MessageKit Version: 4.1.1

Copy link
Contributor

@martinpucik martinpucik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: This adds valuable functionality that handles bottom section insets, which the existing scrollToLastItem method does not. The implementation is sound and addresses a common use case in chat applications.

@martinpucik martinpucik merged commit 64e7fa7 into MessageKit:main Feb 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup