You can do that by setting the properties of the textContainer like so:

textView.textContainer.maximumNumberOfLines = 2;
textView.textContainer.lineBreakMode = NSLineBreakByTruncatingTail;

results matching ""

    No results matching ""