If you use custom fonts in your apps, it can be a hassle to track and maintain the UIAppFonts
key in your Info.plist
file, especially as you need to figure out each font name yourself. Here's an excellent timesaver: FontBlaster is a library that programmatically loads custom fonts for you. You just need to do this:
- Include the font files in your project like you'd normally do
- Include FontBlaster. (Supports Carthage and CocoaPods)
- Run
FontBlaster.blast()
You no longer need the UIAppFonts
key in Info.plist
.
I learnt about FontBlaster from Michael Tsai.
Your feedback is valuable: Do you want more nuggets like this? Yes or No
.
.