Answers for "system font italic in swift"

0

how to set the font of text in swiftui

Text("Simple Swift Guide").font(.system(size: 45, weight: .bold, design: .default))
Posted by: Guest on December-09-2020
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