Skip to content

Instantly share code, notes, and snippets.

@chriswill0w
Forked from khanlou/Fonts.swift
Last active September 20, 2018 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriswill0w/446937f43224e76b2c3250a1a8cc6e99 to your computer and use it in GitHub Desktop.
Save chriswill0w/446937f43224e76b2c3250a1a8cc6e99 to your computer and use it in GitHub Desktop.
Print all fonts in Swift 4 UIFont
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