How do I get the height of a large navigationBar? Even when it is small? I know that it is 96 points, but when and where can I get this value programatically?
Asked
Active
Viewed 57 times
0
-
When? When the navigation bar is large. – iOSDev Mar 16 '20 at 08:51
-
Why do you need the height of a large navigationBar even when it is small? – iOSDev Mar 16 '20 at 08:54
-
@iOSDev I want to implement a scrollToTop method that also shoes the large Title. So I need that height to pass it to the method ´scrollView.setContentOffset(desiredOffset, animated: true)`. I need a point where I can read that height knowing that it is large at that point. – WalterBeiter Mar 16 '20 at 09:14
-
https://medium.com/@lucabecchetti/calculate-top-distance-status-bar-height-and-navigation-bar-height-of-uiviewcontroller-without-e4dbfe241a77 could be a good lead of track. – XLE_22 Apr 07 '20 at 07:09