Swift: Bolding UIButton
For a UIButton
I tried this and works:
Swift 2
testButton.titleLabel?.font = UIFont.boldSystemFontOfSize(18)
Swift 3 & 4
testButton.titleLabel?.font = UIFont.boldSystemFont(ofSize: 18)
(Thank's to ConfusionTowers)
Swift 4+
button.titleLabel?.font = UIFont.systemFont(ofSize: 22.0, weight: .bold)