Created
September 23, 2015 00:02
-
-
Save tomwilsn/42390142a0a138b06afc to your computer and use it in GitHub Desktop.
Print iOS font names in Swift 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIFont { | |
static func printFontNames() { | |
for familyName in UIFont.familyNames() { | |
print("Family name: \(familyName)") | |
for fontName in UIFont.fontNamesForFamilyName(familyName) { | |
print("Font name: \(fontName)") | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment