Skip to content

Instantly share code, notes, and snippets.

@Nikoloutsos
Created November 28, 2023 23:06
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 Nikoloutsos/04e337fd55fcb0857e543c5ded8c67ab to your computer and use it in GitHub Desktop.
Save Nikoloutsos/04e337fd55fcb0857e543c5ded8c67ab to your computer and use it in GitHub Desktop.
Print all registered fonts (Debugging)
func printMyFonts() {
print("--------- Available Font names ----------")
for name in UIFont.familyNames() {
print(name)
if let nameString = name as? String {
print(UIFont.fontNamesForFamilyName(nameString))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment