I can\'t find a way to set the font size of the title in a custom UIBarButtonItem. The only way I can think of getting around this is to set it as an image which I would like to
Swift5:
let item = UIBarButtonItem(title: "", style: .plain, target: self, action: #selector(self.onItemTapped)) let font:UIFont = UIFont(name: "", size: 18) ?? UIFont() item.setTitleTextAttributes([NSAttributedString.Key.font: font], for: UIControl.State.normal);