title: Swipe to delete on entire section in UITableView
body: <p>I have a <code>UITableView</code> which has a <strong>variable amount of sections</strong> and every section has a <strong>variable amount of rows</strong>. Every section contains a section header, a section footer and the rows for that section. They are shown and displayed inside a container. Everything up until now works as expected. To demonstrate what my <code>UITableView</code> currently looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/j3bKp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j3bKp.jpg" alt="current tableview"></a></p>
  
  <p>I am now trying to implement the possibility to swipe left on the <strong>entire section</strong>, so that the header of the section, the rows inside this section and the footer of this section move to the left and display another <code>UIView</code>. I am capable of swiping the cells separately, but enabling this feature on the entire sections have caused headaches for the past two days. This is what I would like to achieve:</p>
  
  <p><a href="https://i.stack.imgur.com/9vX1D.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9vX1D.jpg" alt="desired result"></a></p>
  
  <p>I have thought about implementing <code>UIGestureRecognizers</code> but I am afraid they might conflict with my <code>UITableView</code>. Also, I started implementing it, but I would not know how to move solely the section on which was swiped to the left.</p>
  
  <p>Then I thought I could maybe implement a <code>UIScrollView</code> as container for each section. How I would accomplish this is still a mystery to me, but it seems like a possible solution if this could be done.</p>
  
  <p>Furthermore I am out of ideas and stuck on how this should be done. It's something I have not found on the Internet so far - at least no working examples of some kind so I have zero inspiration on how to achieve the effect.</p>
  
  <p>I therefor would like to ask if somebody has an idea of how this could work and what I have to keep in mind when implementing this. Every clue pointing me towards a working solution is gratefully appreciated!</p>
  
  <p>EDIT: I have already seen the possible duplicate this afternoon. However, the suggestion there shows touchesBegan() on the header, which does not work in my case as I need the entire section to be "draggable".</p>