title: Increase NavigationBar height
body: <p>I have the following code:</p>
  
  <pre><code>func navbarbutton() {
      UIView.animateWithDuration(0.2, animations: { () -&gt; Void in
          let current = self.navigationController?.navigationBar.frame
          self.navigationController?.navigationBar.frame = CGRectMake(self.frame!.origin.x, self.frame!.origin.y, self.frame!.size.width, current!.size.height + 50)
          self.navigationController?.navigationBar.layoutIfNeeded()
      })
  }
  </code></pre>
  
  <p>I'm able to increase the height of the navigation bar by 50 dp. That's not the issue for me. The issue I'm having is that the <code>UIBarButtonItems</code> are all aligned to the bottom. How can I get them aligned to the top so that I can add more to the bottom myself? I'm getting something as per the image:</p>
  
  <p><a href="https://i.stack.imgur.com/1tn1W.png" rel="nofollow"><img src="https://i.stack.imgur.com/1tn1W.png" alt="enter image description here"></a></p>
  
  <p>Is it possible to get it aligned to the top?</p>