I am working on an iOS app which presents a viewcontroller modally. This viewcontroller is embedded in a navigation controller. However on iPhone 12, iPhone XR the navigation title, Done and Back button are missing in the navigation bar. I read that if I present a viewcontroller instead of pushing it the navigation item will overriden. I don't want to use push. I need to use present to show the viewcontroller modally.
I found this code with which I can set title dynamically:
self.navigationController?.navigationBar.topItem?.title = "TEST3"
But I can still not see the title when I run the app. I looked into the hierarchy viewer and here is a screenshot where you can see that a random UIView is overlapping my title with "TEST3" in it:
Because of this random UIView I can not see my navigation title. I don't know where this UIView comes from. Does anyone have an idea?

If you present a view controller modally, yes, you only see the very top part of the navigation bar ... until you dismiss the presented controller:
You also cannot interact with the navigation controller or its current view controller while the modal VC is presented.
If you want to keep the navigation bar (with Back and your Done buttons) visible and active, you'll want to add the new controller's view as a subview -- not present it.