title: UITextView data change swift
body: <p>How can you detect a change of data in a <code>UITextView</code> with <code>Swift</code>? The following code does not do any detection.</p>
  
  <p>I am declaring the <code>UITextView</code> :</p>
  
  <pre><code>@IBOutlet weak var bodyText: UITextView!
  
  optional func textViewDidChange(_ textView: UITextView!) {
      println(bodyText.text)
  }
  </code></pre>
  
  <p>Thanks
  Scott</p>