Comment on Present UIMenu programatically I had this very same question and I did found calling "performPrimaryAction" method of the UIButton will simply Open the menu, when condition in my code would showing the menu. Available iOS 17.4 and will work if the View is already visible. UI Frameworks UIKit Sep ’24