Created
June 27, 2016 09:04
-
-
Save maail/85ac40c56ddb58084d3a389bafa0c7d4 to your computer and use it in GitHub Desktop.
Find fonts available in Xcode Project
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
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