title: Swift hide back button
body: <p>I need to hide back button and paste another button</p>
  
  <pre><code>self.navigationItem.setHidesBackButton(true, animated: false)
  self.navigationItem.hidesBackButton = true
  self.navigationController?.navigationItem.hidesBackButton = true
  self.navigationController?.navigationBar.topItem?.hidesBackButton = true
  
  self.tabBarController?.navigationController?.navigationItem.hidesBackButton = true
  self.tabBarController?.navigationController?.navigationItem.setHidesBackButton(true, animated: false)
  self.tabBarController?.navigationItem.hidesBackButton = true
  
  let backButton1 = UIBarButtonItem (title: "Button", style: .plain, target: self, action: #selector(GoToBack))
  self.navigationItem.leftBarButtonItem = backButton1
  self.navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .done, target: self, action: #selector(GoToBack))
  
  self.tabBarController?.navigationItem.setLeftBarButtonItems([backButton1], animated: true)
  </code></pre>
  
  <p>but this code  didnt work, back button dont hided or replaced to another button</p>
  
  <p>how can i solve this problem ?</p>
  
  <p>show this <code>vc</code> like this</p>
  
  <pre><code>self.navigationController?.pushViewController(viewcontroller, animated: true)
  </code></pre>