Skip to content

Instantly share code, notes, and snippets.

@lekhanhtoan37
Forked from khanlou/Fonts.swift
Created September 3, 2020 16:06
Show Gist options
  • Save lekhanhtoan37/89f0fc5ff8523e47dedb5a5ff1758ffb to your computer and use it in GitHub Desktop.
Save lekhanhtoan37/89f0fc5ff8523e47dedb5a5ff1758ffb 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