title: Select whole text of UITextView using Swift
body: <p>I tried to do this the same way as I'm doing it with a <code>UITextField</code>:</p>
  
  <pre><code>textView.selectedTextRange = textView.textRange(from: textView.beginningOfDocument, to: textView.endOfDocument)
  </code></pre>
  
  <p>What am I doing wrong?</p>