From b98d8340c82a5467f92be8701aff503a3f0fa55d Mon Sep 17 00:00:00 2001 From: Pavel Gurov Date: Sun, 23 Jun 2019 19:09:43 +0300 Subject: [PATCH] Close delete button when editing is over --- Display/ListView.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Display/ListView.swift b/Display/ListView.swift index 63fa283..2150cd1 100644 --- a/Display/ListView.swift +++ b/Display/ListView.swift @@ -3563,6 +3563,14 @@ open class ListView: ASDisplayNode, UIScrollViewAccessibilityDelegate, UIGesture self.checkItemReordering() } + + public func dismissAllRevealOptions() { + for i in 0 ..< self.itemNodes.count { + if self.itemNodes[i].preventsTouchesToOtherItems { + self.itemNodes[i].touchesToOtherItemsPrevented() + } + } + } override open func touchesBegan(_ touches: Set, with event: UIEvent?) { let touchesPosition = touches.first!.location(in: self.view)