UIMenu presented via inputAccessoryView can be hidden by on-screen keyboard on iPad

Originator:paulvonschrottky
Number:rdar://16818482 Date Originated:2025-03-11
Status:Open Resolved:
Product:iPad Product Version:iOS 18.3.1
Classification: Reproducible:Yes
 
# Description
The iPad keyboard can hide the sub-menus of UIMenu presented via a text field's inputAccessoryView property. If the UIMenu is not part of an inputAccessoryView, the sub-menus are correctly sized and have scroll enabled, as expected.

This bug is not present on iPhone apps but only iPad apps (including apps in slide over).

![uimenu-hidden-by-keyboard](https://github.com/user-attachments/assets/c3e893ba-8630-4b50-b404-d4f1bfc243e5)


# Steps to reproduce
1. Place a UITextField on the screen
2. Populate its inputAccessoryView with a UIButton that shows a UIMenu
3. Add a sub-menu to the UIMenu with multiple options
4. Run the app on iPad
5. Focus the text field, tap the UIButton to open the UIMenu, and tap the option to see the sub-menu
6. Notice that the sub-menu is partially hidden below the keyboard 

# Expected

The sub-menu should adapt to the keyboard and shrink to fit available space. It should also scroll. This works great on iPhone.

# Actual

The sub-menu doesn't adapt to the keyboard and instead extends below the keyboard. It has no scroll.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at feedbackassistant.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!