iOS 27 Beta UIBarButtonItem isHidden/isEnabled not working

I set the flag isHidden to true and isEnabled to false, but seems both of them are not working on iOS 27 public beta. They were working fine on iOS 26 and priors.

Will next version iOS 27 fix that or do i need to use another alternative like completely remove the uibarbuttonitem from the navigation tool bar?

iOS 27 Beta UIBarButtonItem isHidden/isEnabled not working
 
 
Q