I have added a custom font to my project, but its not showing up.
I have done the following to solve the issue without luck:
- add it to bundle resources
- added in info.plist
- made sure target membership is checked.
- deleted app from simulator + cleaned and rebuild
The weird thing is I can use the font just fine in IB but as soon as I run it in the simulator it won't work.
also I used the following code to confirm that the font family is loaded just fine.
for family in UIFont.familyNames {
print("\(family)")
for name: String in UIFont.fontNames(forFamilyName: family) {
print("== \(name)")
}
}
any ideas if this is a known bug?