Skip to content

Instantly share code, notes, and snippets.

@moveitonover
Created May 23, 2018 11:42
Show Gist options
  • Save moveitonover/ce959dc105d3e70b2a49eca08ba12c84 to your computer and use it in GitHub Desktop.
Save moveitonover/ce959dc105d3e70b2a49eca08ba12c84 to your computer and use it in GitHub Desktop.
Print all font names in iOS using Swift
// Iterate through all font families and print names ✌🏻
UIFont.familyNames.flatMap { UIFont.fontNames(forFamilyName: $0) }
.forEach { print("Font: \($0)") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment