Incorrect intrinsic size of attributed text in label
<p>I have problem with attributed text in label that takes to much space at the bottom. When I was using not attributed one, sizing was ok, but now I have always <strong>bottom space - marked pink on the image</strong>. I tried changing value of height constraint (generated by iOS) in Reveal.app and when I make it even one point smaller than it is, text is truncated.</p>

<p>I need attributed label because I am making attributes from HTML string:</p>

<pre><code>&lt;p style=\"font-family: EncodeSans-Thin; font-size: 10.0; color: #1f2e3b;\"&gt;
    Od 2004 roku wspieramy organizacje biznesowe w rozwoju sztuki zarządzania projektami. 
    Nasza działalność opiera się na trzech filarach – 
    &lt;span style=\"font-family: EncodeSans-Light\"&gt;
        doradztwie, realizacji projektów na zlecenie oraz szkoleniach.
    &lt;/span&gt;
&lt;/p&gt;
</code></pre>

<p><a href="https://i.stack.imgur.com/F5LCM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F5LCM.png" alt="bottom space ilustration"></a></p>

<p>Have you encountered such problem?</p>

<p><strong>UPDATE:</strong></p>

<p>I am using function below to produce NSAttributedString from HTML string (as a String extension). </p>

<pre><code>func makeAttributesFromHTML() -&gt; NSAttributedString {
    guard let htmlData = self.dataUsingEncoding(NSUTF8StringEncoding) else {
        return NSAttributedString()
    }

    do {
        let atributedString = try NSAttributedString(data: htmlData, options: [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType, NSCharacterEncodingDocumentAttribute: NSUTF8StringEncoding], documentAttributes: nil)

        return atributedString
    } catch {
        return NSAttributedString()
    }
}
</code></pre>