View title misaligned after compiling with Xcode 26

After compiling with Xcode 26, my UIKit view's title appears hugging the screen on the left when run on iOS 16-18 (as shown in the image below). It's fine when run on iOS 26, but not older iOS versions.

When I compile the same code with Xcode 16.4, the title aligns with the table rows.

Has anyone else seen this? Is this a bug in the frameworks or is there something I could do to resolve?

Just to follow up, setting the preservesSuperviewLayoutMargins to true on the navigation bar seems to fix the issue. This defaults to false. I'm not sure why I never had to do that before, nor why it was ok on iOS 26. If anyone has any insight on this, please share.

View title misaligned after compiling with Xcode 26
 
 
Q