class CustomBarButton: UIBarButtonItem {
override func awakeFromNib() {
style = .plain
tintColor = .red
//Set font name and size
guard let font = UIFont(name: "Helvetica-Bold", size: 19) else {
return
}
setTitleTextAttributes([NSAttributedStringKey.font:font], for: .normal)
}
}