UITextViewのLine Breakを設定して最後を…にする方法
https://gyazo.com/f9c480c1f60a972d0e2c0024fd9a689e
というわけで、コードで設定しましょう。下のサンプルは、最大行数を3行にしています。
code: Swift
catTextView.textContainer.lineBreakMode = .byTruncatingTail
catTextView.textContainer.maximumNumberOfLines = 3