Answers for "bold part of uilabel text swift"

0

swift uilabel font bold

// 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
Posted by: Guest on June-04-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language