Last active
January 5, 2017 05:33
-
-
Save tanduynguyen/8a796ca07a7b6f92c80d426e193784af to your computer and use it in GitHub Desktop.
Print all iOS fonts in Swift 3
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
UIFont.familyNames.sorted().forEach({ | |
print("Font Family : " + $0) | |
let names = UIFont.fontNames(forFamilyName: $0) | |
print("Font Names = \(names)") | |
print("-------------------------------------------") | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment