Two buttons with the same position - uikit

I need to place a button with a long-press gesture, on the same potion of a button with a regular click (touch up inside).
I want them to be two separate buttons for a couple of reasons:

  1. One is bigger than the other.
  2. The long-press button is a button I created by code, and use also in other places in the project.
  3. The other button is a button in a specific cell of a collection view

Is there is way to put two buttons on the same potion, and they both get the trigger?

Thanks

This is probably off-topic for this forum since it is about Apple-private frameworks. Best probably to ask over on Apple developer sites, StackOverflow, etc.. Not part of open-source Swift infrastructure

Terms of Service

Privacy Policy

Cookie Policy