Changing the height of the Navigation bar iOS Swift

simply dragged and dropped it on my view

In that case, the simplest way is with constraints. Just give it a height constraint (along with the other constraints that position it). No code required! Here’s an example:

enter image description here

That was achieved with no code at all. It’s all done with constraints:

enter image description here

We are pinned to the top and sides of the superview, along with height constraint of 100.

Leave a Comment