How can I prevent swipe to delete from also touching button that is hit incidentally by swipe in Swift?
<p>I have a Table in Swift whose cells the user can delete by swiping. Unfortunately, there is a button in each cell that, if you swipe and happen to end up swiping near or over the button, it will display the red delete button on the side but then it'll also execute the code connected to the button. How can I prevent the button from being executed if it registers the swipe to delete?</p>

<p>So far, I've tried to make the bounds of the button smaller and I tried different touch events.</p>