nathantannar4 / InputBarAccessoryView

A simple and easily customizable InputAccessoryView for making powerful input bars with autocomplete and attachments
MIT License
1.15k stars 229 forks source link

InputBarAccessoryView + SwiftUI incorrect offset #236

Closed Kaspik closed 2 years ago

Kaspik commented 2 years ago

Transferring an issue from MessageKit: https://github.com/MessageKit/MessageKit/issues/1734


Describe the bug

When you come to enter a message, the InputBarAccessoryView pushes up so that the keyboard can be shown. This works correctly in the Simulator, but not on device. The messages get blocked in behind. See screenshot attached.

To Reproduce

Run the Example app on device, select SwiftUI Example, try to send a message.

Expected behavior

The messages are shown above the InputBarAccessoryView like they do with the other examples or when running in the Simulator.

Screenshots

Screen Shot 2022-08-10 at 12 46 37 PM

Environment

e1block commented 2 years ago

Solved. See https://github.com/MessageKit/MessageKit/issues/1734#issuecomment-1221426408