I have used a custom font in my previous app.
The file name was \"ProximaNova-Regular.otf\" and to load the font I just used...
[UIFont fontWithName:
Swift 4.0+ solution
for fontFamilyName in UIFont.familyNames { print("family: \(fontFamilyName)\n") for fontName in UIFont.fontNames(forFamilyName: fontFamilyName) { print("font: \(fontName)") } }
Will output:
family: Apple SD Gothic Neo font: AppleSDGothicNeo-Thin font: AppleSDGothicNeo-Light
family: Apple SD Gothic Neo
font: AppleSDGothicNeo-Thin
font: AppleSDGothicNeo-Light