It's simple, just create a link to the UIBarButtonItem from Main.stroyboard to the appropriate swift file, like this one,
@IBOutlet var yourBarBtn: UIBarButtonItem!
After that write this line,
yourBarBtn.tintColor = .white //your_color
This is it!
source share