Created
October 6, 2017 03:31
-
-
Save r0b0t3d/6d0c6b56a757e9daaa60b821d1b70de7 to your computer and use it in GitHub Desktop.
Swift Utilities methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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