UIBarButtonItem with customView and a UIMenu in Catalyst

I'm trying to use a UIBarButtonItem with a customView in catalyst. I'd like a UIMenu to show on a single left click. This works without a customView, but with a customView the menu no longer displays. If I use a UIButton as the customView and attach a menu to it then it only displays on right click.

Any idea how to have a customView and a UIMenu showing on a single left click?

Replies

If you use a custom view, then the menu property (amongst many others) on UIBarButtonItem become inert. Your custom view will have to configure itself to present a menu (such as by using UIButton, or subclassing UIControl).
@Rincewind Thanks for the reply however not quite what my question is about. I'm interested in using the customView of a UIBarButtonItem - in this case a UIButton to show a UIMenu, however not as a right click but as a left click.