Messagekit: Top view also getting scrolled when start typing.

Created on 20 Aug 2019  路  4Comments  路  Source: MessageKit/MessageKit

I Embedded "MessagesViewController" into my another view controller. In viewcontroller xib i have a custom navigation bar. So as per the Embedded Example in demo but when i start typing whole view getting scroll with my custom top view. Please check attached screenshot and let me know how can i stop it. I want it same like Embedded Example.
1
22

Most helpful comment

I had the same problem but it was for something else.

If you are using IQKeyboardManager you must disable it in the view.
IQKeyboardManager.shared.disabledDistanceHandlingClasses.append (ChatViewController.self)

That solved my problem. I hope it helps you

All 4 comments

Hello

Tell me what was the problem?

It still is not solved. In my project ChatViewController embedded into the UINavigationViewController slides up when the keyboard appears

Screenshot 2020-04-30 at 13 25 35

any update on it? I am facing the same issue

I had the same problem but it was for something else.

If you are using IQKeyboardManager you must disable it in the view.
IQKeyboardManager.shared.disabledDistanceHandlingClasses.append (ChatViewController.self)

That solved my problem. I hope it helps you

Was this page helpful?
0 / 5 - 0 ratings