2

I want to make a navigation bar that changes height in it's detail view just like the messages app in iOS 10. How can I do that?

Edit:

I am looking to change the height dynamically. SizeThatFits() Permanently changes the height.

Resizing Navigation Bar

evenwerk
  • 947
  • 1
  • 12
  • 28
  • Possible duplicate of [Programmatically change height of navigation bar in swift](https://stackoverflow.com/questions/32006330/programmatically-change-height-of-navigation-bar-in-swift) – Gerriet May 26 '17 at 17:59
  • The article you sent me asks to set a custom height. I want mine to resize when it's in detail. – evenwerk May 26 '17 at 18:07
  • 1
    Apple has a sample app that shows a few different modifications to the navigation bar, including something quite similar - probably a good place to start: https://developer.apple.com/library/content/samplecode/NavBar/Introduction/Intro.html – DonMag May 26 '17 at 18:30
  • 1
    I have checked the sample app but the extended navigation bar doesn't have the same behaviour as the gif in my question. The sample app has a UIView added below and the gif's Navigation Bar resizes when it goes into detail. – evenwerk May 27 '17 at 09:42
  • @evenwerk did you find an answer for this? – user2995344 Jan 07 '20 at 23:57

1 Answers1

0

If you are trying to do something else that requires the navigation bar to be resized, that's not supported. iOS 11 and Above Community bug reports

Vakas
  • 6,291
  • 3
  • 35
  • 47