Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Matthew Muscat
Courses Plus Student 1,757 PointsHow do you extend a navigation-bar vertically?
(Swift)
Hi, it seems as when comparing my navigation bar height to others i've seen mines not quite as high, so i was wondering how do I extend it vertically?
Some examples..:
compared to mine:
2 Answers
Chris Shaw
26,676 PointsHi Matthew,
In order to get the navigation bar to extend to the top of your app you need to embed it within a navigation controller which you can do by selecting your view controller and then via the Editor menu in the menu bar navigate to Embed In and choose Navigation Controller.
Now you will have a nicer looking bar that extends from the status bar and is 66 pixels high.
Happy coding.
Daniel Sattler
4,867 Pointsthose are normally custom navBars. I usually use Visual Effect View with Blur and build my own nabber with custom segues.
I hope this leads you in the right direction
Matthew Muscat
Courses Plus Student 1,757 PointsThanks for the comment!~

Matthew Muscat
Courses Plus Student 1,757 PointsMatthew Muscat
Courses Plus Student 1,757 PointsThankyou!
Chris Shaw
26,676 PointsChris Shaw
26,676 PointsYou're welcome.
Matthew Muscat
Courses Plus Student 1,757 PointsMatthew Muscat
Courses Plus Student 1,757 PointsHey Chris, I have another question, could you please help me with this? https://teamtreehouse.com/forum/what-would-i-use-to-navigate-between-different-single-views-through-using-a-page-control
Cheers