Created
May 13, 2015 20:14
-
-
Save Nadohs/538579fa7117157a78b8 to your computer and use it in GitHub Desktop.
get list of available fonts 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
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