Closed PhilipDukhov closed 3 days ago
I think we should optimize this tho, so that we skip calculating inputTextViewHeight if the middleContentView != inputTextView
you mean caching middleContentView.intrinsicContentSize
operation result?
do you think it should be done in this PR?
Even with your approval I don't have access to merge this in
@nathantannar4 please check the last comment!
This fixes #264
I'm not sure if it's a proper fix for the library, but it works good in my case.
I believe the code above the fix is still needed to manage
inputTextView.isScrollEnabled
state with the height constraint, so it shouldn't be placed inelse
statement.https://github.com/nathantannar4/InputBarAccessoryView/blob/093bdc71dc26bfcdaa71352d5ff0cd84b9b8d427/Sources/InputBarAccessoryView.swift#L571-L586