Skip to content

Having a scrolling problem with MessageKit on SwiftUI #1503

@crspybits

Description

@crspybits

Thanks so much for your library! I've got it in a production app (Neebla on the app store) and am updating that app with SwiftUI and running into an issue.

Describe the bug
When I tap in the input field, I am finding it necessary to tap a second time in the input field to get proper scrolling. Without the second tap, I can scroll the content out of view. See:
https://www.dropbox.com/s/b599saahswohiqh/Problem%20with%20scrolling.mov?dl=0

To Reproduce
My code is based on the SwiftUI example posted here.
It's all online. This is the code based on MessageKit:
https://github.com/SyncServerII/Neebla/tree/main/Neebla/UI/Screens/Comments

Expected behavior
I expect to not be able to scroll the messages completely off the screen.

Screenshots
See video.

Environment

  • What version of MessageKit are you using?
    3.4.2

  • What version of iOS are you running on?
    14.2

  • What version of Swift are you running on?
    5.3

  • What device(s) are you testing on? Are these simulators?
    Simulators and physical iPhone.

  • Is the issue you're experiencing reproducible in the example app?
    I've not provided one yet. Sorry. I can do that if needed.

What I'd appreciate is some insight into which code gets triggered on this second tap into the input field. I've looked into it and can't yet find it.

Additional context
I'm using SPM. My UI is mostly SwiftUI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions