0

I have an issue with Xcode: I can not find my custom font in the custom list when I am in a storyboard.

I have added my font correctly in my project :

  • Target is selected
  • Font added in Info.plist
  • Font available in Bundle Ressource

My fonts:

My fonts

Plist:

Plist

Bunde Ressource:

Bunde Ressource

I tried to detect my font with some code :

for family: String in UIFont.familyNames {
   print("\(family)")
   for names: String in UIFont.fontNames(forFamilyName: family) {
      print("== \(names)")
   }
}

But I do not see my custom font in the list ...

Any idea, because I am stuck :(

Andrew
  • 1,456
  • 15
  • 23
  • I have already try to restart my Mac and Xcode, but it is not working. In fact, I already read all the other topic about issus with Font but I didn't find the solution to my problem. – Leo Marliere Nov 27 '20 at 12:31
  • Did you add the fonts to the target? – matt Nov 29 '20 at 01:06

1 Answers1

0

According to this answer: all you need that just restart your Mac and Xcode. Pretty dummy but, looks like it working.

Xcode custom fonts not showing up in Storyboard

Andrew
  • 1,456
  • 15
  • 23