Messagekit: Layout out of safe area when keyboard appears

Created on 14 Mar 2020  路  8Comments  路  Source: MessageKit/MessageKit

MessageKit-version: 3.0.0 (pod)
iOS-version: 13.0
Swift-version: 5
Testing-devices - iPhone 7 - iPhone X Pro Max (hard & soft)

MessageKit implemented in subview container view - when showing keyboard everything moves up out of safe area into status bar.

What I have already tried:

  • siting size manually when keyboard appears - seems to have no effect
  • using different layout & constraints
  • using different version of MessageKit & different devices - everything seems to be same

Screen shots:
Bildschirmfoto 2020-03-14 um 11 26 22
Simulator Screen Shot - iPhone 11 Pro Max - 2020-03-14 at 11 11 58
Simulator Screen Shot - iPhone 11 Pro Max - 2020-03-14 at 11 12 04

bug? stale waiting for response

Most helpful comment

@fly-qp @devcat1010
and anyone looking for a fix
Are you using IQKeyboardManager?
If so then you can fix the issue simply by adding this in AppDelegate didFinishLaunchingWithOptions:

IQKeyboardManager.shared.disabledDistanceHandlingClasses.append(YourChatViewController.self)

馃槈

All 8 comments

So, you are using a toolbar instead of a UINavigationController / UINavigationBar?
Does the toolbar have a static height?
Have you checked your toolbar's compression resistance is greater than the container's?
Have you checked the messagesCollectionView.contentInset.top?

This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This issue has been auto-closed because there hasn't been any activity for at least 21 days. However, we really appreciate your contribution, so thank you for that! 馃檹 Also, feel free to open a new issue if you still experience this problem 馃憤.

I have the same issue. How to fix it? @austinwright

@devcat1010 if you're facing the same issue, could you please make a PR with changes to our Example project so this issue is reproducible there? It'd really help us to track down what's wrong here

@martinpucik Did you check my video?

@fly-qp @devcat1010
and anyone looking for a fix
Are you using IQKeyboardManager?
If so then you can fix the issue simply by adding this in AppDelegate didFinishLaunchingWithOptions:

IQKeyboardManager.shared.disabledDistanceHandlingClasses.append(YourChatViewController.self)

馃槈

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TheDarkCode picture TheDarkCode  路  3Comments

emmanuelay picture emmanuelay  路  3Comments

nitrag picture nitrag  路  3Comments

Abacaxi-Nelson picture Abacaxi-Nelson  路  4Comments

Leon12345679 picture Leon12345679  路  3Comments