Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created October 16, 2020 15:10
Show Gist options
  • Save BetterProgramming/0783434bd888ebae35c4373bf2f8e83a to your computer and use it in GitHub Desktop.
Save BetterProgramming/0783434bd888ebae35c4373bf2f8e83a to your computer and use it in GitHub Desktop.
UIFont.familyNames.sorted().forEach { fontFamily in
print("Family: \(fontFamily)")
UIFont.fontNames(forFamilyName: fontFamily).forEach { fontName in
print("name: \(fontName)")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment