0

I have changed the navigation bar height this way:

extension UINavigationBar {
  override open func sizeThatFits(_ size: CGSize) -> CGSize {
    return CGSize(width: UIScreen.main.bounds.width, height: 72)
  }
}

After updating to Xcode 9 and iOS 11 it is not working. Please anyone help to fix that issue.

dda
  • 6,030
  • 2
  • 25
  • 34
vara
  • 816
  • 3
  • 12
  • 29
  • see this https://stackoverflow.com/questions/46325181/ios-11-unable-to-change-navigation-bar-height – Anbu.Karthik Sep 28 '17 at 06:33
  • Thanks Its Working fine. Navigation bar Height is changed but title not showing vertically center @Anbu.Karthik – vara Sep 28 '17 at 07:02
  • hide this `self.setTitleVerticalPositionAdjustment(11, for: UIBarMetrics.default)` and try – Anbu.Karthik Sep 28 '17 at 07:04
  • Yes. I removed. But stil its not showing vertically center – vara Sep 28 '17 at 07:22
  • check this https://stackoverflow.com/questions/31940352/how-to-increase-the-height-of-navigation-bar-in-xcode/31940514?noredirect=1#comment79948647_31940514 – Anbu.Karthik Sep 30 '17 at 01:49
  • @Anbu.Karthik I check that one. but still bar button showing top of the navgation bar. – vara Oct 03 '17 at 06:14

0 Answers0