title: Custom Fonts not showing on font family list
body: <p>I'm using Swift 5 and Xcode 11.4.1 on macOS Catalina.</p>
  <p>I have had no problem applying custom font til today.
  I'm trying to apply custom font to a label called &quot;textLabel&quot;.
  Let me show you how I tried first and then please tell me what is wrong.</p>
  <ul>
  <li>By Using Storyboard</li>
  <li>I want to use custom font whose name is &quot;myFont.ttf&quot; to a label called &quot;textLabel&quot;.</li>
  <li>I dropped the font file in Xcode with this option.
  <a href="https://i.stack.imgur.com/wa2Kf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wa2Kf.png" alt="Option Screenshot" /></a></li>
  <li>I went to info.plist to let Xcode know that I provide custom font.
  <a href="https://i.stack.imgur.com/ajuNz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ajuNz.png" alt="info.plist screenshot" /></a></li>
  <li>I opened the main.storyboard, went to attribute inspectors and chose the label's font as custom style.</li>
  <li>I can't find &quot;myFont&quot; font in the font family list. &lt;&lt; The problem here.</li>
  </ul>
  <p>So I tried another way, programmatically.</p>
  <ul>
  <li>By Using Code</li>
  </ul>
  <ol>
  <li>Same process as mentioned above until the number 3.</li>
  <li>I wrote this code inside of viewController.swift file.</li>
  </ol>
  <pre><code>import UIKit
  
  class ViewController: UIViewController {
      
    @IBOutlet weak var textLabel: UILabel!
     
    override func viewDidLoad() {
      super.viewDidLoad()
          
      textLabel.font = UIFont(name: &quot;myFont.ttf&quot;, size: 22)
    }
  }
  </code></pre>
  <ol start="3">
  <li>I ran the app, It shows just normal system font.</li>
  </ol>
  <p>I tried both ways over and over (even I created new files for 5 times to just test this font thing)and also I tried with various fonts but same thing happened.</p>