I was working on an app refresh in Swift the last few weeks, and wanted to get an output of all the fonts available to me. However, I decided to just write a quick Swift function to do just this:
1 2 3 4 5 6 7 |
func outputAllAppFonts(){ for familyName in UIFont.familyNames() { for fontName in UIFont.fontNamesForFamilyName(String(format: familyName as NSString)) { NSLog("\(fontName)"); } } } |
Updated for Beta 5.
Enjoy!