UIBarButtonItem shown with incorrect height on iOS 27

I have an app that uses UIToolbar and UIBarButtonItem, I create the bar button items using init(customView:), but I need them to be larger than the default toolbar item size, so I constrain the custom views to be larger, such as 50x50.

Example:

let button = UIButton(type: .system)
button.translatesAutoresizingMaskIntoConstraints = false

NSLayoutConstraint.activate([
    button.widthAnchor.constraint(equalToConstant: 50),
    button.heightAnchor.constraint(equalToConstant: 50),
])

let item = UIBarButtonItem(customView: button)
toolbar.items = [item]

This worked on iOS 26 and would show a circular glass button. But on iOS 27 the button shows as an oval where the height seems capped at 44pt, and can't be made any taller.

This has been an issue for all iOS 27 betas so far, and I've already filed this as a feedback (FB23641020).

Has anyone else seen this issue or found a workaround?

UIBarButtonItem shown with incorrect height on iOS 27
 
 
Q