Skip to content

Instantly share code, notes, and snippets.

@lindon-fox
Created October 20, 2014 07:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lindon-fox/bc9d24c0f6f9e95f795e to your computer and use it in GitHub Desktop.
Save lindon-fox/bc9d24c0f6f9e95f795e to your computer and use it in GitHub Desktop.
Hot to list available fonts on iOS in Swift
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