Prevent swipe gestures on header cells from triggering the cell below. Issue #1661
This commit is contained in:
parent
5b2728aa10
commit
fe75fb1aa4
@ -215,6 +215,9 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
|||||||
let tap = UITapGestureRecognizer(target: self, action:#selector(self.toggleSectionHeader(_:)))
|
let tap = UITapGestureRecognizer(target: self, action:#selector(self.toggleSectionHeader(_:)))
|
||||||
headerView.addGestureRecognizer(tap)
|
headerView.addGestureRecognizer(tap)
|
||||||
|
|
||||||
|
// Without this the swipe gesture registers on the cell below
|
||||||
|
headerView.addGestureRecognizer(UIPanGestureRecognizer(target: nil, action: nil))
|
||||||
|
|
||||||
headerView.interactions.removeAll()
|
headerView.interactions.removeAll()
|
||||||
if section != 0 {
|
if section != 0 {
|
||||||
headerView.addInteraction(UIContextMenuInteraction(delegate: self))
|
headerView.addInteraction(UIContextMenuInteraction(delegate: self))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user