-
Notifications
You must be signed in to change notification settings - Fork 232
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
Changing access modifier of requiredInputTextViewHeight from public to open? #253
Comments
It is expected that custom views provide an |
Currently, my custom view is not defined as a separate class. It is just defined as a UIView. Are you suggesting that I need to create a custom class that inherits from InputTextView and override intrinsicContentSize? |
You don't need to inherit from |
After applying the suggested modifications, the intrinsicContentSize of the custom view limits the height. However, the height of the view still increases as the input text grows in UI.
|
Sorry I'm unclear as to what the problem is and what you have changed.
Are you trying to limit how high the input text view can grow? |
1. my feature request related to a problem
i have a feature, that's adds a emojiButton into middleContentView. so i set a customeView which contains inputTextView and emojiButton,and call setMiddleContentView(self.customeView, animated: false). it works,but maxTextViewHeight = 88 did't works. so i read the source code, find that problem lies in the following code snipped.
2. solution
Because i set customeView so middleContentView == inputTextView alwals false. so i need override this requiredInputTextViewHeight property in the following code snipped.
but it's access modifier is public, so can changing it to open?
The text was updated successfully, but these errors were encountered: