Prevent swipe gestures on header cells from triggering the cell below. Issue #1661

This commit is contained in:
Maurice Parker 2020-01-20 12:42:25 -07:00
parent 5b2728aa10
commit fe75fb1aa4
1 changed files with 3 additions and 0 deletions

View File

@ -214,6 +214,9 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
headerView.gestureRecognizers?.removeAll()
let tap = UITapGestureRecognizer(target: self, action:#selector(self.toggleSectionHeader(_:)))
headerView.addGestureRecognizer(tap)
// Without this the swipe gesture registers on the cell below
headerView.addGestureRecognizer(UIPanGestureRecognizer(target: nil, action: nil))
headerView.interactions.removeAll()
if section != 0 {