Swift Textlabel Bold

[Solved] Swift Textlabel Bold | Swift - Code Explorer | yomemimo.com
Question : swift uilabel font bold

Answered by : happy-hyena-j4t6squdpbx2

// Define attributes
let labelFont = UIFont(name: "HelveticaNeue-Bold", size: 18)
let attributes :Dictionary = [NSFontAttributeName : labelFont]
// Create attributed string
var attrString = NSAttributedString(string: "Foo", attributes:attributes)
label.attributedText = attrString

Source : https://stackoverflow.com/questions/25025779/setting-uilabel-text-to-bold | Last Update : Fri, 11 Jun 21

Answers related to swift textlabel bold

Code Explorer Popular Question For Swift