I have imported all types of my custom font into the Xcode but when I want to use it in UIFont I got Error
I use like below :
let appearance = UITabBarItem.appearance()
let attributes = [NSAttributedString.Key.font: UIFont(name: "IRANSansMobile(FaNum)_Bold", size: 10),
NSAttributedString.Key.foregroundColor: UIColor.black]
appearance.setTitleTextAttributes(attributes as [NSAttributedString.Key : Any], for: .normal)
when I delete _Bold from end of my font name it works correctly but not in bold style. please help me solve it