title: How to implement linebreak with trailling dots using UITextView Swift
body: <p>How to implement line-break with trailing dots using UITextView Swift.
  TextView Size => Width - 200, Height - 50</p>
  
  <pre><code>textView.textContainer.maximumNumberOfLines = 0
  textView.textContainer.lineBreakMode = .byTruncatingTail
  textView.textContainer.lineFragmentPadding = 0
  </code></pre>
  
  <p>I have used above line of code to implement the same. </p>
  
  <p>(Note : There is 5 blank lines in between line1 and Line2)
  Sample Text : </p>
  
  <p>TestLine1 </p>
  
  <p>TestLine2 
  TestLine3</p>
  
  <p>Expected output. TestLine1... </p>
  
  <p>And on clicking display the complete code.</p>
  
  <p>Please suggest. Thank you in advance.</p>