Unable to Tint Custom View in UIBarButtonItem on iOS 26

When using a custom UIButton as the customView for a UIBarButtonItem in iOS 26, setting the tintColor on the UIBarButtonItem or the button itself does not affect the button’s appearance in the navigation bar. The button displays, but the tint is not applied as expected.

Steps to Reproduce:

  1. Create a new iOS project with a navigation controller.
  2. Use the following code in your view controller:
class ViewController: UIViewController {
    
 override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = .secondarySystemBackground
        
        var configuration = UIButton.Configuration.plain()
        configuration.title = "Why Not Tinted...?"
        configuration.baseForegroundColor = .systemBlue
        configuration.contentInsets = NSDirectionalEdgeInsets(top: 12, leading: 12, bottom: 12, trailing: 12)
        let button = UIButton(configuration: configuration)

        let rightBarButton = UIBarButtonItem(customView: button)
        rightBarButton.tintColor = .green
        navigationItem.rightBarButtonItem = rightBarButton
    }
}

Expected Result: The UIButton in the navigation bar should appear green with glass effect, according to the tintColor set on the UIBarButtonItem.

Actual Result: The UIButton appears, but the tintColor is not applied. Changing the tintColor on either the UIBarButtonItem or the UIButton has no effect on its appearance in the navigation bar.

This has been an issue since iOS 26 beta 1. I filed a bug report then. Please do the same using the Feedback Assistant app.

There are actually quite a few issues related to tinting bar button items in iOS 26. I've filed 4 separate bug reports so far (just for different tinting issues). Apple just doesn't seem to care about fixing basic UIKit bugs in iOS 26. It's frustrating. And every beta update introduces new issues related to colors. (sorry for the rant).

I ended up changing the baseForegroundColor in the UIButton.configurationUpdateHandler{} as a workaround.

Indeed, it can be frustrating to file bug reports that Apple ignores, especially for basic behavior.

Unable to Tint Custom View in UIBarButtonItem on iOS 26
 
 
Q