Alignment of navigationItem.titleView in iOS 26?

I'm in the process of updating an app for iOS 26 and I've run into some behavior that I don't quite understand. I have a view controller that is embedded in a navigation controller. That VC currently uses a UISegmentedControl (with 3 segments) for its navigation item title view. In iOS 17 and 18, this works well. There is one right bar button item when the first or second segment is selected and no bar button items at all when the third segment is selected.

On iOS 17 and 18, the title view always appears centered. When I run this app on the iOS 26 beta 4 simulator, the title view appears to be left-aligned (instead of centered) when the first or second segment is selected (and the one right bar button item exists) but it is centered when the third segment is selected and there is no right bar button item. I thought maybe this was something related to a UISegmentedControl so I created a new custom view to use for the title view instead and it is behaving the same way. Is this a behavior change in iOS 26?

Answered by DTS Engineer in 851781022

@bmt22033 Could you please file a bug report and include a test project that reproduces the issue. Post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.

@bmt22033 Could you please file a bug report and include a test project that reproduces the issue. Post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.

Alignment of navigationItem.titleView in iOS 26?
 
 
Q