How to add buttons and enable tap on UIContextMenu previewView on iOS Swift?

354 Views Asked by At

I am trying to add some buttons on the previewView for context menu. But on tapping the preview View, the content menu gets dismissed. How to disable the dismiss action and detect tap on the button inside preview view? I tried setting UserInteractionEnabled for the preview view, but that didn't help. I need to add a button in the red area and it should be clickable.

enter image description here

0

There are 0 best solutions below