Messagekit: How can I remove the animation when the keyboard dismiss?

Created on 12 Jul 2020  路  11Comments  路  Source: MessageKit/MessageKit

Hi, The lastest version of MessageKit, I changed the keyboardDismissMode to onDrag, and I changed the messageStyle to my custom style, then when the keyboard dismiss, the cell got an animation that loads from left to right, top to bottom锛宧ow can I fix that?

confirmed bug

All 11 comments

Can you please provide at least a screen recording showcasing the issue? And if possible, code that would help us reproduce this?

Thanks for your reply, the following is the showcasing, but it doesn't seem obvious, so I also record an slow animation version,
Untitled2
Untitled

I have a same issue, too

61D64912-A25F-4392-8F9A-A489F1D78EC2

the animation is caused by messageCollectionViewBottomInset
I added this code below in MessagesViewController+Keyboard.swift that fixes the unexpected animation.

 UIView.performWithoutAnimation {
            messageCollectionViewBottomInset = newBottomInset
}

But this is pretty hacking, no sure whether it's the best solution.

Thanks for the screen recording @xiaoshuaiyu1993 , I'll mark this as a bug.

@lhr000lhrmega Thanks for sharing your solution. Would you like to submit a pull request fixing this? :)

Thanks for the screen recording @xiaoshuaiyu1993 , I'll mark this as a bug.

@lhr000lhrmega Thanks for sharing your solution. Would you like to submit a pull request fixing this? :)

No problem.

Has this issue been updated in master? Thanks

Has this issue been updated in master? Thanks

try this fork
https://github.com/lhr000lhrmega/MessageKit

Thanks to @lhr000lhrmega the fix has been merged into develop, and will be included in the next release.

Thanks to @lhr000lhrmega the fix has been merged into develop, and will be included in the next release.

(^鈻絕)

Release is just about to happen, closing this now! :)

Was this page helpful?
0 / 5 - 0 ratings