evermeer / AttributedTextView

Easiest way to create an attributed UITextView (with support for multiple links and from html)
Other
440 stars 55 forks source link

systemFont with weight doesn't work #4

Closed ziryanov closed 7 years ago

ziryanov commented 7 years ago

I'm trying applying light font like this:

let regular = UIFont.systemFont(ofSize: 15)
let light = UIFont.systemFont(ofSize: 15, weight: UIFontWeightLight)
label.attributedText = "regular ".font(regular)
                                         .append("light").font(light)
                                         .attributedText

But both words are with the same font (regular).

ziryanov commented 7 years ago

I've created pull request with fix. Please check and merge

evermeer commented 7 years ago

Thanks! Your PR has been merged and published as version 0.5.1