I need to add two buttons in the navigation bar of my app, but what I need to use an external image (already imported to the project) does not appear.
override func viewDidLoad() {
super.viewDidLoad()
//Esse botão aparece (icone da própria biblioteca)
let rightShareBarButtonItem:UIBarButtonItem = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.action, target: self, action: #selector(ViewController.shareTapped))
//Esse ícone não aparece, estou tentando carregar uma imagem interna - já importada ao projeto
let rightInfoBarButtonItem:UIBarButtonItem = UIBarButtonItem(image: UIImage(named: "info.png"), style: UIBarButtonItemStyle.plain, target: self, action: #selector(ViewController.infoTapped))
self.navigationItem.setRightBarButtonItems([rightInfoBarButtonItem, rightShareBarButtonItem], animated: true)
}