Skip to content

Instantly share code, notes, and snippets.

@andresilvagomez
Forked from khanlou/Fonts.swift
Created April 27, 2018 05:01
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 andresilvagomez/4aafd1b6aeea260275478672236f61ef to your computer and use it in GitHub Desktop.
Save andresilvagomez/4aafd1b6aeea260275478672236f61ef to your computer and use it in GitHub Desktop.
Print all fonts in Swift 3
UIFont.familyNames.forEach({ familyName in
let fontNames = UIFont.fontNames(forFamilyName: familyName)
print(familyName, fontNames)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment