iOS 26, UISegmentedControl as UIBarButtonItem not respecting selectedSegmentTintColor

A UISegmentedControl as a UIBarButtonItem (customView) is ignoring selectedSegmentTintColor on iOS 26, works fine on prior versions

I've submitted FB19660941 with a minimal Xcode workspace to reproduce the issue.

Has anyone else seen this and identified a workaround?

I’ve discovered a workaround for this one:

By setting:

translatesAutoresizingMaskIntoConstraints = false

on the UISegmentedControl the selectedSegmentTintColor is now working.

iOS 26, UISegmentedControl as UIBarButtonItem not respecting selectedSegmentTintColor
 
 
Q