I have a UILabel and a UITextView, where my intention is for them both to display the same text, and for the appearance to be the same. I\'m having some issue with that righ
It was a change to UILabel
in IOS 11 to fix orphaned words. No way to shut it off although I wish there was. The only way to do it would be to use a non editable/nonscrollable textview or a CATextLayer
. To get the sizing attributes of a UILabel
I am afraid you have to do that manually.
See this as the problem was similar. Although not in that answer I did find that UITextView
wraps the old way. I am using a UITextView
now and I manually adjust the font size in textDidChange
. I hold the original font so I can always resize.