Skip to content

Instantly share code, notes, and snippets.

@bleeckerj
Forked from khanlou/Fonts.swift
Created May 19, 2018 19:47
Show Gist options
  • Save bleeckerj/cb74887a184a78c4d45f5588afd4e5e5 to your computer and use it in GitHub Desktop.
Save bleeckerj/cb74887a184a78c4d45f5588afd4e5e5 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