abhimuralidharan
abhimuralidharan

Reputation: 5939

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

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

Upvotes: 3

Views: 459

Answers (0)

Related Questions