I'm trying to use UIFont(name: "Times New Roman Bold", size: 30.0) at run time but it's returning nil
Here is my code -
lblHeader.font = UIFont(name: "Times New Roman Bold", size: 30.0)
But lblHeader
is returning SFUI-Regular
when I printed in the console.
I've tried following combination but no luck -
Times New Roman Bold
Times New Roman-Bold
Times New Roman-bold
Times New Roman bold
TimesNewRoman Bold
TimesNewRoman-Bold
I have found the answer here - iOS Fonts
But thanks to Rup for the help.
I hope this answer will help others. Happy coding :)