Skip to content

Instantly share code, notes, and snippets.

@Nadohs
Created May 13, 2015 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nadohs/538579fa7117157a78b8 to your computer and use it in GitHub Desktop.
Save Nadohs/538579fa7117157a78b8 to your computer and use it in GitHub Desktop.
get list of available fonts in swift
class func findCustomFonts(){
for family in UIFont.familyNames()
{
NSLog("%@", family as! String);
let fontNames = UIFont.fontNamesForFamilyName(family as! String);
fontNames.map{
println("\($0)")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment