Skip to content

Instantly share code, notes, and snippets.

@maail
Created June 27, 2016 09:04
Show Gist options
  • Save maail/85ac40c56ddb58084d3a389bafa0c7d4 to your computer and use it in GitHub Desktop.
Save maail/85ac40c56ddb58084d3a389bafa0c7d4 to your computer and use it in GitHub Desktop.
Find fonts available in Xcode Project
func getFontsAvailable(){
var fontFamilies = UIFont.familyNames()
for index in 0..<fontFamilies.count{
let fontFamily = fontFamilies[index]
let fontNames: NSArray = UIFont.fontNamesForFamilyName(fontFamilies[index] as String) as NSArray
print("\(fontFamily), \(fontNames)")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment