The goal of this PR is to improve the algorithm that calculates the number of skeleton lines for UITextViews. Now, the library is using the same logic for UILabels and UITextViews. The library took the height of the view to calculate the height of each skeleton line. But this is not valid for UITextViews, because they have a height defined from the beginning and it's higher than the height of the line. So now the library takes into account the font line height and the height of the view defined by the constraints to calculate the final height.
Before fix
After fix
Requirements
[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
Summary
The goal of this PR is to improve the algorithm that calculates the number of skeleton lines for
UITextView
s. Now, the library is using the same logic forUILabel
s andUITextView
s. The library took the height of the view to calculate the height of each skeleton line. But this is not valid forUITextView
s, because they have a height defined from the beginning and it's higher than the height of the line. So now the library takes into account the font line height and the height of the view defined by the constraints to calculate the final height.Before fix
After fix
Requirements