Created
February 10, 2018 09:26
-
-
Save sgbasaraner/6c1d36b69fe4d06e5d9df3aa675bf455 to your computer and use it in GitHub Desktop.
print all available fonts in iOS with Swift 4
This file contains hidden or 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.description) { | |
print(" \(name)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment