In Xcode 26 ß (iOS 26 simulator) UIBarButtonItem content disappear when tapped

Just testing an existing app with Xcode 26.

I notice that content of UIBarButtonItem (either text or image) disappears when tapped (and reappear on release).

Those are custom, bordered buttons.

  • Attribute inspector:

  • Buttons in Xcode:

  • When selected in Xcode, we see a rectangle inside the rounder rect of iOS 26

  • In simulator:

  • When tapped in simulator:

I have edited code from

                backButton.setTitleTextAttributes([
                    .font : boldFont,
                    .foregroundColor : UIColor.systemBlue,
                ], for: .normal)  

to

                backButton.setTitleTextAttributes([
                    .font : boldFont,
                    .foregroundColor : UIColor.systemBlue,
                ], for: [.normal, .focused, .selected, .highlighted]) 

to no avail.

What am I missing ?

In Xcode 26 ß (iOS 26 simulator) UIBarButtonItem content disappear when tapped
 
 
Q