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

padding is broken when you try to set it twice #262

Open
gerchicov-vg opened this issue Jun 27, 2024 · 0 comments
Open

padding is broken when you try to set it twice #262

gerchicov-vg opened this issue Jun 27, 2024 · 0 comments

Comments

@gerchicov-vg
Copy link

gerchicov-vg commented Jun 27, 2024

Describe the bug
I needed to change the bar height to place some additional content inside it but found the following:
When you set padding.top for the second time and the second value is less than the previous one the size of the input bar remains the same and the text view looks like constrained to the top border.

To Reproduce
Steps/code to reproduce the behavior:
Took code from example and just added the following for "iMessageInputBar":

padding.top = 364
        DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
            self.padding.top = 8
        }

I also figured out that it is somehow related to the first padding.top = ... call. If I call it with delay everything works

Expected behavior
padding works properly

Screenshots
It is enough obvious to provide screenshots

Environment

  • 6.3.0
  • iOS 15.5 - 17.x
  • Swift 5
  • Emulator
  • The issue is reproduced in the example from this repo, in example from MessageKit library and in my own code

Additional context

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

No branches or pull requests

1 participant