I have a label. If the text count in that label is 30, then after the 20th character there should be a line break. How can we achieve that?
I have the label setup as below.
let label = MyLabelText()
label.numberOfLines = 2
label.lineBreakMode = .byTruncatingTail
label.setContentHuggingPriority(.defaultHigh, for: .horizontal)
Both line break and number of lines are defined. But I'm not sure how to go to the second line after the 20th character.