title: Dynamic UITextView size based on content in Swift
body: <p>I don't suppose someone could guide me on the proper way to dynamically size a UITextView while still using Auto-Layout?  Using Swift, that is.</p>
  
  <p>I've tried programmatically adjusting the bottom constraints in attempt to get the UITextView to hug the content.  But I'm not sure how to get the height of the content of the UITextView?</p>
  
  <p>I'm attempting to load data into UITextView fields, then, dynamically adjust them to look neat.</p>
  
  <pre><code>@IBOutlet weak var serviceDescriptionTextViewBottomGuide: NSLayoutConstraint! 
  
  override func viewDidLoad() {
  
          self.activityName.text = serviceCodes[selectionValue]
          self.serviceDescriptionTextView.text = serviceDescription[selectionValue]
          self.whenToUseDescriptionTextView.text = whenToUseCode[selectionValue]
  
          self.serviceDescriptionTextViewBottomGuide?.constant += x
      }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/RhSWr.png" alt="enter image description here"></p>