Crash on _UIButtonBarItemLayout _updateItemView

With iOS 26.1 and beta 26.2, there is a crash seen for _UIButtonBarItemLayout update. Has anyone experienced this crash or has any information on this

Thread 0 name: Thread 0 Crashed: 0 libobjc.A.dylib 0x000000019daa144c objc_retain + 16 1 UIKitCore 0x00000001a680b184 -[_UIButtonBarItemLayout _updateItemView] + 360 2 UIKitCore 0x00000001a6d5ddcc -[_UIButtonBarItemLayout minimumLayoutWidthGivenMinimumSpaceWidth:] + 28 3 UIKitCore 0x00000001a6d5eeec -[_UIButtonBarItemGroupLayout recalculateLayoutWidthsGivenItemSpaceWidth:] + 304 4 UIKitCore 0x00000001a6d4ca28 -[_UIButtonBar _widthInfoForLayout:] + 188 5 UIKitCore 0x00000001a68093b4 -[_UIButtonBar _layoutBar] + 108 6 UIKitCore 0x00000001a6809328 __42-[_UIButtonBarStackView updateConstraints]_block_invoke + 44 7 UIKitCore 0x00000001a7dbea8c +[UIView(Animation) performWithoutAnimation:] + 76 8 UIKitCore 0x00000001a68092d0 -[_UIButtonBarStackView updateConstraints] + 112 9 UIKitCore 0x00000001a64707e8 -[UIView(AdditionalLayoutSupport) _previousFittingSizeInfo] + 784 10 UIKitCore 0x00000001a6470508 -[UIView(AdditionalLayoutSupport) _previousFittingSizeInfo] + 48

I think i found the issue, as somehow xcode 26.1 and iOS 26.1 simulator helped me reproduce this fairly.

The problem was I had two UIBarButtonItem created as the class level for a subclass of UINavigationController. Now, when they were getting reused due to pushViewController under the same navigationController the buttons were reused for every new controller

class A: UINavigationController {
   
 let x = UIBarButton()
ley y = UIBarButton()

func foo() {
   viewController.navigationItem.leftBarButtonItem = x
    viewController.navigationItem.rightBarButtonItem = y
}
}

It was working so far without issue except when 26.1 came in.

if i modify it to locally create buttons for every viewController it works fine but curious what has changed recently in UIKit of OS 26.1 that its not liking the re-use.

class A: UINavigationController {
   
 
ley y = UIBarButton()

func foo() {
    let x = UIBarButton() 
   viewController.navigationItem.leftBarButtonItem = x

   let y = UIBarButton()    
    viewController.navigationItem.rightBarButtonItem = y
}
}
Crash on _UIButtonBarItemLayout _updateItemView
 
 
Q