Skip to content

Instantly share code, notes, and snippets.

@chrislonge
Last active November 29, 2016 16:06
Show Gist options
  • Save chrislonge/530bcb9f06ea56ff0727 to your computer and use it in GitHub Desktop.
Save chrislonge/530bcb9f06ea56ff0727 to your computer and use it in GitHub Desktop.
List all font families and font names in Swift 3
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