-
-
Save chriswill0w/446937f43224e76b2c3250a1a8cc6e99 to your computer and use it in GitHub Desktop.
Print all fonts in Swift 4 UIFont
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 { | |
let sName: String = family as String | |
print("family: \(sName)") | |
for name in UIFont.fontNames(forFamilyName: sName) { | |
print("name: \(name as String)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment