title: hide NavigationBar without lifting up the View
body: <p>hiding my NavigationBar with this :</p>
  
  <pre><code>func hideAndShow(){
  
     if self.navigationController?.navigationBar.hidden == true {
          self.navigationController?.setNavigationBarHidden(false, animated: true)
  
      }else {
          self.navigationController?.setNavigationBarHidden(true, animated: true)
      }
   }
  </code></pre>
  
  <p>but its also lifting up my View (maybe because View is below the Navigation),   how can i hide it without lifting up my View </p>
  
  <p>see the below image for better understanding </p>
  
  <p><a href="https://i.stack.imgur.com/CSDir.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CSDir.png" alt="image"></a></p>
  
  <p>as you can see that my image in my view also get shifted up  while hiding the NavigationBar any idea how can i fix this ?? </p>
  
  <p>can we just show the view below the layer of navigation bar ??? </p>