UITextView linkTextAttributes font attribute not applied to NSAttributedString
<p>I have an <code>NSAttributedString</code> generated from HTML which includes some links. The attributed string is shown in a UITextView. I wish to apply a different font style for the links and am setting <code>linkTextAttributes</code> for this. I've added <code>NSForegroundColorAttributeName</code>, <code>NSFontAttributeName</code> and <code>NSUnderlineStyleAttributeName</code>. For some reason the foreground color is applied but the remaining attributes are not.</p>

<pre><code>myTextView.linkTextAttributes = [NSForegroundColorAttributeName : UIColor.redColor(), NSFontAttributeName : textLinkFont, NSUnderlineStyleAttributeName : NSUnderlineStyle.StyleNone.rawValue]
</code></pre>

<p>Has anyone else faced this and how do I change the font style for links without having to apply in-line CSS to the original HTML? Thanks.</p>