Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you change the way iOS 26 renders buttons on UINavigationBar?

Since updating my Xcode and building my app for iOS 26, the buttons on the UINavigationBar look terrible, in my opinion, with large rounded rectangles around them. Can anything be done to revert these to look more like they used to without setting the UIDesignRequiresCompatibility flag in the plist file? I would prefer not to set this flag because I still want the transparent effects of iOS 26 in my app.

Old appearance (with compatibility flag set to true):

enter image description here

New iOS 26 appearance (with compatibility flag set to false):

enter image description here

like image 701
Ant Avatar asked Dec 22 '25 22:12

Ant


1 Answers

if #available(iOS 26.0, *) {
    navigationItem.leftBarButtonItem?.hidesSharedBackground = true
    navigationItem.rightBarButtonItem?.hidesSharedBackground = true
}

In this way, the button’s background will be removed and it will appear in the old style, but the animation effect during navigation will remain.

like image 54
mhammad alkhalaf Avatar answered Dec 26 '25 07:12

mhammad alkhalaf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!