Created
June 28, 2018 08:54
-
-
Save ksmandersen/5af2982eabd16bea026cfaf3a65c567d to your computer and use it in GitHub Desktop.
Listing out all included fonts in your app
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
// Make sure to include font files in bundle | |
// Add "Fonts provided by application" / UIAppFonts to Info.plist (use filename) | |
// Run this snippet in AppDelegate to find the name of your fonts | |
UIFont.familyNames.forEach { family in | |
print(family) | |
UIFont.fontNames(forFamilyName: family).forEach { names in | |
print(" - ", names) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment