title: Wrapping text in UITextView in Swift
body: <p>UPDATE: Looks like the <code>UITextView</code>'s width is bigger than screen's width.</p>
  
  <p>It is strange since I created the <code>UITextView</code> using a storyboard and in preview mode it looks like it's width is less than that of the <code>UIViewController</code>.</p>
  
  <p>I have a <code>UITextView</code>, in a <code>UIViewController</code>, that was created using storyboard.</p>
  
  <p>I have similar code to populate the text in the <code>UITextView</code>.</p>
  
  <pre class="lang-c prettyprint-override"><code>self.taskGroupDescriptionTextView.text = taskGroup.description
  self.taskGroupDescriptionTextView.textContainer.lineBreakMode = NSLineBreakMode.ByCharWrapping
  </code></pre>
  
  <p>I tried different types of <code>lineBreakMode</code>, break by char/word. None of them work.</p>
  
  <p>My <code>UIViewController</code> when run on iOS simulator still has text that extends beyond the screen.</p>