I have the following code to limit the number of lines in UITextView
textView.textContainer.maximumNumberOfLines = 10
textView.textContainer.lineBreakMode = .byTruncatingTail
but is there a way to limit the number of characters of each line? how can i set the limit to 50 chars for each line?
EDIT: I tried the solution proposed as possible duplicate but the limit is applied over the entire text, I need to set the limit for each line.