hectormatos2011 / iOSContextualMenu

An easy-to-plug-in Contextual Menu for iOS inspired by Pinterest.
MIT License
85 stars 27 forks source link

Presenting Programmatically #11

Open willsmillie opened 6 years ago

willsmillie commented 6 years ago

Is there a way to present the menu programmatically?

hectormatos2011 commented 6 years ago

Sure thing! However I haven't exposed the methods for it. At the moment however, you can set it up with any activate option type other than .asSoonAsPossible and then change it to .asSoonAsPossible to trigger it. You may need to call reloadData afterwards. The other way is that you could submit a pull request to expose the presentMenuItems and dismissMenuItems publicly and I'd be happy to merge it!