title: Swift - How to change UITabBarItem badge font?
body: <p>I have a <code>UITabBar</code>. I set a value for tab bar items:</p>
  
  <pre><code>tabBarItem3?.badgeValue = String(self.numberOfProducts)
  </code></pre>
  
  <p>Now I want to change its font to a specific font. Then I used this code :</p>
  
  <pre><code>tabBarItem3?.setBadgeTextAttributes([NSFontAttributeName: UIFont(name: "IRANSans", size: 14)], for: .normal)
  </code></pre>
  
  <p>It doesn't work. What should I do?</p>