I am trying to add a custom view on right of UINavigationBar. What I tried is the following, but the view is not showing up! Pleas
I add this code in viewWillAppear(), and work for me
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.navigationController?.navigationBar.isHidden = false
self.navigationItem.title = "Forgot Password?"
self.navigationItem.leftBarButtonItem = UIBarButtonItem(customView:UIImageView(image: UIImage(named: "btn_back")))
}