Skip to content
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

Incorrectly positioned input accessory view with SwiftUI (including official example) #1798

Open
mikekavouras opened this issue Jun 7, 2023 · 2 comments
Labels

Comments

@mikekavouras
Copy link

mikekavouras commented Jun 7, 2023

Describe the bug
Using SwiftUI, displaying the keyboard moves the input accessory view wayyyy too high.

To Reproduce

This is reproducible form the official repo examples application.

  1. Clone this repo
  2. Launch the ChatExample project
  3. Select "SwiftUI Example"
  4. Tap into the textfield and hit cmd+k to display the keyboard (if running in a simulator)

Expected behavior
As with the other examples, it's expected that the input accessory view remains pinned to the top of the keyboard.

Screenshots

CleanShot.2023-06-07.at.13.09.59.mp4

Environment

  • What version of MessageKit are you using?
    4.1.1
  • What version of iOS are you running on?
    16.5
  • What version of Swift are you running on?
    5.8.1
  • What device(s) are you testing on? Are these simulators?
    iPhone 13 Pro (physical) and iPhone 14 (simulator)
  • Is the issue you're experiencing reproducible in the example app?
    Yes
@phoenisis
Copy link

I am also facing the same issue. It happens in a sheet or in a view that is pushed.
(Tested on iOS 16 and iOS 17)

@phoenisis
Copy link

But i found a fix in this commit: 7809a5b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants