Created
October 20, 2014 07:08
-
-
Save lindon-fox/bc9d24c0f6f9e95f795e to your computer and use it in GitHub Desktop.
Hot to list available fonts on iOS in Swift
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
for fontFamilyName in UIFont.familyNames() { | |
println("This is the font family: \(fontFamilyName)") | |
for fontName in UIFont.fontNamesForFamilyName(fontFamilyName.description) { | |
println(" This is the font name: \(fontName)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment