XCode12 Navigation Bar

93 Views Asked by At

I am currently trying to make an app using XCode12 and Swift, but the default Navigation Bar height is too tall. I can't seem to find anything for XCode12 on how to change the height of the Navigation Bar, and I am very new to iOS app development.

Does anyone know how to change the height of the Navigation Bar on XCode12 programmatically?

Please let me know!

1

There are 1 best solutions below

2
On

I too had issues with the Navigation Bar. I assume you ask this question because your elements are covered by the navigation bar or there is not enough space to add everything you want without the UI getting to crammed so here are two ways to workaround this:

  1. Elements may be covered by the navigation bar because you have used the edgesIgnoringSafeArea(.all) modifier. You can remove or alter this modifier and elements will not slide beneath the navigation bar(ex:.edgesIgnoringSafeArea(.bottom)).

  2. You can use UIScreen.main.bounds.(height or width) to size your elements programmatically.