Skip to content

Instantly share code, notes, and snippets.

@andru255
Created June 7, 2018 17:31
Show Gist options
  • Save andru255/567aedde784ef233da983214921e66f9 to your computer and use it in GitHub Desktop.
Save andru255/567aedde784ef233da983214921e66f9 to your computer and use it in GitHub Desktop.
swift 4 - available fonts
func printFonts() {
let fontFamilyNames = UIFont.familyNames
for familyName in fontFamilyNames {
print("------------------------------")
print("Font Family Name = [\(familyName)]")
let names = UIFont.fontNames(forFamilyName: familyName)
print("Font Names = [\(names)]")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment