Skip to content

Instantly share code, notes, and snippets.

@r0b0t3d
Created October 6, 2017 03:31
Show Gist options
  • Save r0b0t3d/6d0c6b56a757e9daaa60b821d1b70de7 to your computer and use it in GitHub Desktop.
Save r0b0t3d/6d0c6b56a757e9daaa60b821d1b70de7 to your computer and use it in GitHub Desktop.
Swift Utilities methods
class Utility {
/// Logs all available fonts from iOS SDK and installed custom font
class func logAllAvailableFonts() {
for family in UIFont.familyNames {
print("\(family)")
for name in UIFont.fontNames(forFamilyName: family) {
print(" \(name)")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment