Unable to add attributed string with font Avenir Next Condensed [Swift 3]
<pre><code>    let s = NSAttributedString(string: "Percentage", attributes: [NSFontAttributeName : UIFont(name : "Avenir Next Condensed", size : 20), NSUnderlineStyleAttributeName : NSUnderlineStyle.byWord])
    textView.attributedText = s
</code></pre>

<p>I get the following error for the above code:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_SwiftValue _isDefaultFace]: unrecognized selector sent to instance 0x608000046930'</p>

<p>If I change the NSFontAttributeName to UIFont.boldSystemFont(ofSize: 20), I can see bold text. 
Also on adding NSUnderlineStyleAttributeName, I don't see any text at all.
How can I fix this?</p>