iOS 26 Navigation Bar Adaptation

On the iOS 26 system, the left and right buttons on the page navigation bar have added some new features, such as animation effects when clicked and UI-level wrapping effects. However, I don’t want to use these features—what should I do? We initialize the buttons on the navigation bar like this: UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithCustomView:customView]; Doing this enables some of the system’s built-in features. How can I remove these features?

P.S. We have noticed that the issue can be resolved by adding the "UIDesignRequiresCompatibility" key in Info.plist. However, this configuration may become invalid next year, so we do not intend to use this temporary workaround and prefer to make modifications at the code level instead.

You can set item.hidesSharedBackground = true

More info is here: https://developer.apple.com/forums/thread/795837?page=1#855436022

All toolbar items (UINavigationBar and UIToolbar) still have more horizontal spacing than before, which is messing up my app (buttons that used to fit on a phone no longer fit). Please post if you find a way to override that change.

iOS 26 Navigation Bar Adaptation
 
 
Q