- Notifications
You must be signed in to change notification settings - Fork1.2k
Fix scroll to last item to take section inset into account#1832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Kaspik left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Do you have a video with the fix implemented?
luoshuaiqing commentedMar 10, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hi@hidoon ! It looks like this issue did not fully still not solved. For example, in theExample code's Advanced VC, after entering the advanced vc, it is also not scrolling correctly to the bottom. Would you mind helping take a look what is wrong? Thank you so much! (I was using a similar approach in the example code for my own project, and have spent 10+ hrs already but still couldn't solve the issue myself 😢 ) Update - It seems like the issue happens when the custom input bar's height is larger than the default input bar's ![]() |
luoshuaiqing commentedMar 10, 2024
Another issue I found is: if I created a custom footer view for the messages collection view, scroll to bottom has a large and very noticeable padding at the bottom, and seems to be the exactly one footer cell's height. |
hidoon commentedMar 10, 2024
hi@luoshuaiqing, as far as I know, the |
luoshuaiqing commentedMar 10, 2024
Oh I am not talking about scrolling down. I am talking about
I am referring to |
hidoon commentedMar 10, 2024
@luoshuaiqing Oh, I see. I think the problem you face is the height of your custom view is not taken into account and |
luoshuaiqing commentedMar 10, 2024
Thanks for the advice, but it looks like it didn't work after I do something like |
hidoon commentedMay 17, 2024
heyluoshuaiqing and other who needs help, there is a function in |
Kaspik commentedJul 11, 2024
Is this ready to be merged given the conversation here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I dont think 3 times called scroll function is better

What does this implement/fix? Explain your changes.
This correction addresses the bug (issue#1830) where
scrollToLastItem(at:animated:)didn't perform as expected. Previously, it would scroll to the last item without considering thesectionInset, eliminating the gap between the last cell andinputBarAccessoryView.Does this close any currently open issues?
Yes it does, (issue#1830 )
Where has this been tested?
Devices/Simulators:
iOS Version:
Swift Version:
MessageKit Version: