I\'m currently trying to add a custom font to my project, but I somehow won\'t work.
I\'ve already added the .otf file to a font folder, checked that it targets to
I had the exact same problem. The following steps fixed it for me. I'm currently using Xcode 11.4.1
Check the installed fonts with:
for family in UIFont.familyNames.sorted() {
let names = UIFont.fontNames(forFamilyName: family)
print("Family: \(family) Font names: \(names)")
}
If it's appearing you can use it also programmatically
Here is also a list of Common mistakes with adding custom fonts