For some reason, the font that I have added to the Xcode Project is showing in the Storyboard
but not in the Simulator
.
Here is the Storyboard
.
Here is the Simulator
.
As you can see, the two fonts are not the same. I have seen similar posts on Stack Overflow, but all of these posts suggest solutions that I already have tried or made sure are enabled. I have made sure that the project is the target, it is in copy bundled resources, and it has been added to the info.plist
. Here are some more screenshots:
As this is a brand new project and I have only worked in storyboard mode, no code could be interfering with the text.
Thanks to @Ashley Mills, I was able to determine that the issue was I added the fonts in a folder and not independently. Adding the fonts separately fixed the issue.
You can do this adding custom font to your project following:
info.plist
. (or do it in code, comment to ask me how)anywhere after app lunched
for familyName in UIFont.familyNames {
for fontName in UIFont.fontNames(forFamilyName: familyName) {
print(fontName)
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With