InputBarAccessoryView
InputBarAccessoryView copied to clipboard
padding is broken when you try to set it twice
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