Hi guys
Has anybody hit any issues with the Navigation bar and tab bars being in the safe area. With ios16 the navigation bar appears onto of the status bar (in the safe area), the tab bar is also in the safe area.
However, putting the device into landscape and then portrait brings it back closer (although the buttons no longer have an indentation). In the screenshot on the left is how the app is first displayed and on the right is how it changes after rotation.
This is working fine in ios15
I know Apple having been making changes in this area, but the app is set to ios15 as the minimum deployment and I'm not using any of the new features, so I wasn't expecting this issue.
Changing the navigation bar frame seems to have no effect
Anybody any clues?
Fixed it!
So our app was creating a RootViewController which was extending UIViewController
Inside the RootViewController, we create a UITabBacontroller and add it's view as a sub view of the RootViewController
Slightly odd I know, might have picked this up from an online post.
This has been working fine with no issues for over 10 years
The fix was to instead make the RootViewController extend UITabController (and therefore no longer needing to add to any sub views)
The problem then went away
Hope this help somebody else