We are adding a function to change the height and spacing of only certain characters (NewLine) using NSMutableAttributedString.
Set font size to 0 and lineSpacing to 0.
For characters other than specific characters, enter the font size and lineSpacing separately. (e.g. font size = 28.0 / lineSpacing = 16.0)
When applied to UITextView , the space in that part is higher than the lineSpacing set for other lines. (In other words, I set the font size and linespace to 0 for a blank line, but the height occurs in the blank line.)
I thought that by setting the font size and lineSpacing to 0, the line height would be 0. But it doesn't appear that way.
Does anyone know of this issue?
If there is something I don't understand, please let me know, it will help me to solve it.
The iOS version is being developed in the 16.1 environment.