Hi! After I added custom fonts to my Swift – IOS project, I had some problems to reach my custom fonts.All I did was to add .otf folders to under the resources folder in my project. Then I added them via info.plist under — Fonts provided by application–. But then somehow project did not recognize some of my .otf fonts. So I wanted to reach all fonts that I can use for my project. Then I added below function to my project in somewhere just to make it run:
// TO GET FONT NAMES for family: String in UIFont.familyNames() { print("\(family)") for names: String in UIFont.fontNamesForFamilyName(family) { print("NAMES == \(names)") } }