Prevent swipe gestures on header cells from triggering the cell below. Issue #1661
This commit is contained in:
parent
5b2728aa10
commit
fe75fb1aa4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue