-
-
Notifications
You must be signed in to change notification settings - Fork 67
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keeping CollectionView at bottom when inserting any new message. #10
Comments
@tareksabry1337 Hi. Thank you very much. |
Yes I'm trying to scroll to the bottom when a new message appears even if the user is not at the bottom of the conversation. I achieved "keeping at bottom" always by using |
@tareksabry1337 . Thank you. I see. |
@tareksabry1337 Keep in mind that |
I was able to achieve it using
But my question here, is it possible to animate "restoreContentOffset" ? Thanks |
@tareksabry1337 Of course, use
|
@tareksabry1337 Just keep in mind that you should not do batch updates during the animation as it can lead to the UI glitches |
This worked perfectly, Thanks for your effort ! |
@tareksabry1337 My pleasure. Good luck |
First off, Hats off for this amazing layout, I have always struggled with chat layouts due to weird bugs and unknown issues that happen during the development, but this layout has made my life 100x easier.
What I'm trying to achieve is to always keep the CollectionView at bottom when a new message is inserted.
I tried this code snippet
But it looks like it's not working and throwing this error
Any idea what I'm doing wrong ?
The text was updated successfully, but these errors were encountered: