I have a UIButton with the menu set to a UIMenu (with chidren) and ShowMenuAsPrimaryAction set to true.
but I would like to know when the button is pressed and the menu is about to be presented so I can stop other UITextFields from being FirstResponder?
Regards Christian Arild Stœr Andersen
I think you can definitely determine it with
contextMenuInteraction:Then handle
onShowMenuto hide the keyboard, something like:Output: