title: Dynamic corner radius for a UITextView
body: <p>I am trying to make my uitextview's corner radius dynamic depending on the number of lines displayed. The text is retrieved from my backend, so the number of lines will vary... </p>
  
  <p>I've tried setting the corner radius in viewDidLoad after the text view is created by using its frame but for some reason that doesn't work. I'm assuming its returning 0 for some reason.</p>
  
  <p>Any help is greatly appreciated.</p>
  
  <p>(I'm cutting out a lot of code just to keep it simple here. Everything is added to the subview properly. Everything is added programmatically - not using the storyboard at all here. The text views display as expected besides the corner radius)</p>
  
  <p>inside viewDidLoad:</p>
  
  <pre><code>    questionOneTextBox.layer.cornerRadius = self.questionOneTextBox.frame.height * 0.5
      questionTwoTextBox.layer.cornerRadius = self.questionTwoTextBox.frame.height * 0.5
  </code></pre>