I have tried some answers on here to set a custom font for a whole app, but none seem to be working in Xcode 10.1. I was wondering if anyone has some advice?
Here is what I have tried so far;
Using custom font for entire iOS app swift
Set a default font for whole iOS app?
Here is a code sample: (This is still giving me system font)
override func viewDidLoad() {
super.viewDidLoad()
UILabel.appearance().font = UIFont(name: "Times New Roman", size: 17)
let label1 = UILabel(frame: CGRect(x: 50, y: 50, width: 100, height: 100))
label1.text = "Hello"
view.addSubview(label1)
}
Thanks!