title: Dynamically resizing an IOS tableview cells which have a textview embedded in swift
body: <p>I have tried the following code which gives the correct textview frame height </p>
  
  <pre><code>func textViewDidChange(_ textView: UITextView) {
  
      myToDoList[keyArray[sect]]![row] = textView.text
      var frame = textView.frame
      frame.size.height = textView.contentSize.height
      textView.frame = frame
      print(frame)
  
      let indexPath = self.tableView.indexPathForView(textView)
      print(inputActive,indexPath)
  
      self.tableView.indexPathForView(inputActive)
      self.tableView.rowHeight = frame.size.height
  }
  </code></pre>