title: How to change navigationBar height in iOS 11?
body: <p>Apparently changing the navigationBar height faced a new approach in iOS 11.
  in previous iOS versions it was possible to change the navigationBar height by hiding the default navigationBar and adding a new one with custom frame:</p>
  
  <pre><code>self.navigationController?.setNavigationBarHidden(true, animated: false)
  let customNavigationBar = UINavigationBar(frame: CGRect(x: 0, y: 0, width: self.view.bounds.width, height: 64))
  self.view.addSubview(customNavigationBar)
  </code></pre>
  
  <p>But it seems that it is not working in iOS 11 xCode beta. no matter what the new height is, it will always stay at 44.</p>
  
  <p>this is what I've got in xCode 9:</p>
  
  <p><a href="https://i.stack.imgur.com/kSHRI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kSHRI.png" alt="enter image description here"></a></p>
  
  <p>does anyone know how to solve the problem?</p>