title: UILabel subclass - text cut off in bottom despite label being correct height
body: <p>I have a problem with UILabel subclass cutting off text in the bottom. Label is of proper height to fit the text, there is some space left in the bottom, but the text is still being cut off.</p>
  
  <p><a href="https://i.stack.imgur.com/iT4v1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/iT4v1.png" alt="The label"></a></p>
  
  <p>The red stripes are border added to label's layer.</p>
  
  <p>I subclass the label to add edge insets.</p>
  
  <pre><code>override func sizeThatFits(size: CGSize) -&gt; CGSize {
      var size = super.sizeThatFits(size)
      size.width += insets.left + insets.right
      size.height += insets.top + insets.bottom
      return size
  }
  
  override func drawTextInRect(rect: CGRect) {
      super.drawTextInRect(UIEdgeInsetsInsetRect(rect, insets))
  }
  </code></pre>
  
  <p>However, in this particular case the insets are zero.</p>