Navigation Bar appears without having an Navigation View

For a school Project im making a iOS app that displays vending machines on a Map. My problem is that there is this huge navigation bar on top of the screen without even having a navigation view anywhere in the code.

In the preview the bar is not shown, but when I upload the app to my phone or run it in the simulator the bar is there.

Without seeing the code, it’s hard tell what exactkly is going on.

But I would guess that the Map is simpy embedded into your view with the „safearea“ margins still active, so the system will automatically move the map away from dynamic island and other system elements at the screen borders, so the view is not partly hidden. And if you add your own margins to the view you might get such a big unused area… So no navigation bar needs to be involved here.

Navigation Bar appears without having an Navigation View
 
 
Q