Last active
November 29, 2016 16:06
-
-
Save chrislonge/530bcb9f06ea56ff0727 to your computer and use it in GitHub Desktop.
List all font families and font names 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
for family in UIFont.familyNames { | |
print(family) | |
for name in UIFont.fontNames(forFamilyName: family) { | |
print(name) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment