I'm a beginner at swift and I've found that this StackOverflow question and this StackOverflow question has not helped me with my case, most probably because I've coded it differently to them (ie Swift, not Obc).
private let createAccountButton: UIButton = {
let button = UIButton()
button.setTitleColor(.white, for: .normal)
button.setTitle("dont have an account? sign up!", for: .normal) //line 4
return button
I would like the text "sign up!" in line 4 to be formatted in bold but haven't found anything online that can support it with the current way I've coded it.