UITabBar hitTest method is not triggered when click button that is a subview of UITabBar and the subview frame is beyond UITabBar when using Xcode26 build app on OS 26

In our project, we defined a CustomTabBar that inherits UITabBar, and we add some subviews and these subviews' frame is beyond UITabBar, see below picture(a beyond area button, this button is a subview of UITabBar, but frame is out of UITabBar's area):

and in order to let this button response to click action, we override the UITabBar's hitTest method, this works well below OS 26 with Xcode version below 26:

    override public func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
        let pointInCollectionView = self.beyondAreaButton.convert(point, from: self)
        if self.beyondAreaButton.bounds.contains(pointInCollectionView) {
            return self.beyondAreaButton.hitTest(pointInCollectionView, with: event)
        }
        return super.hitTest(point, with: event)
    }

but when using Xcode26 build app on OS 26, I noticed the UITabBar is wrapped by a UIKit._UITabBarContainerView and UIKit._UITabBarContainerWrapperView, and it can not trigger the hitTest method. since the hitTest is not triggered, so the button action is no chance to trigger too. Any suggestions to solve this problem, thank you~ And I have file a feedback assistant: FB19252973

This is not recommended, your buttons shouldn't be a subview of the tab bar. You can add your button at the container level that embeds the UITabBarController as a child. To provide views and content to your tab bar, use the system contols such as UITabBarItem object or use UITabAccessory to provide a bottm accsory view for the tab bar controller.

UITabBar hitTest method is not triggered when click button that is a subview of UITabBar and the subview frame is beyond UITabBar when using Xcode26 build app on OS 26
 
 
Q