Skip to content

Instantly share code, notes, and snippets.

@tanduynguyen
Last active January 5, 2017 05:33
Show Gist options
  • Save tanduynguyen/8a796ca07a7b6f92c80d426e193784af to your computer and use it in GitHub Desktop.
Save tanduynguyen/8a796ca07a7b6f92c80d426e193784af to your computer and use it in GitHub Desktop.
Print all iOS fonts in Swift 3
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