Skip to content

Deprecated scrollToBottom() in favor of scrollToLastItem() - #1505

Merged
martinpucik merged 3 commits into
masterfrom
deprecate_scroll_to_bottom
Dec 3, 2020
Merged

martinpucik merged 3 commits into
masterfrom
deprecate_scroll_to_bottom

Conversation

@martinpucik

Copy link
Copy Markdown
Contributor

What does this implement/fix? Explain your changes.

  • messagesCollectionView.scrollToBottom can crash in certain use cases. This PR adds deprecated flag to this method and scrollsToBottomOnKeyboardBeginsEditing property in favor of messagesCollectionView.scrollToLastItem and scrollsToLastItemOnKeyboardBeginsEditing

Does this close any currently open issues?

  • N/A

Any relevant logs, error output, etc?

  • N/A

Any other comments?

  • 👻

Where has this been tested?

Devices/Simulators:

  • Yes / Yes

iOS Version:

  • 14.2

Swift Version:

  • 5.3

MessageKit Version:

  • master

@Kaspik Kaspik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🎉

@Kaspik

Kaspik commented Dec 3, 2020

Copy link
Copy Markdown
Member

Update changelog please!

@martinpucik
martinpucik merged commit 696eb34 into master Dec 3, 2020
@martinpucik
martinpucik deleted the deprecate_scroll_to_bottom branch December 3, 2020 18:09
@martinpucik martinpucik linked an issue Dec 3, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The screen jumps if there are few messages

2 participants