Forcing a UITextView to wrap properly
UILineBreakMode
is deprecated but not NSLineBreakMode
.
You should use NSLineBreakByCharWrapping
meaning that the word'll be cut after a character.
textView.textContainer.lineBreakMode = .byCharWrapping
UILineBreakMode
is deprecated but not NSLineBreakMode
.
You should use NSLineBreakByCharWrapping
meaning that the word'll be cut after a character.
textView.textContainer.lineBreakMode = .byCharWrapping