From 2e54c6b05d762c17977ad40568b89279a2c8f9df Mon Sep 17 00:00:00 2001 From: supermonk Date: Wed, 26 Jun 2019 23:09:58 +0800 Subject: [PATCH] Fixed bounce when reloading. --- Source/Core/BaseRow.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Core/BaseRow.swift b/Source/Core/BaseRow.swift index 67bbd3953..1645eacbd 100644 --- a/Source/Core/BaseRow.swift +++ b/Source/Core/BaseRow.swift @@ -275,7 +275,14 @@ extension BaseRow { public func reload(with rowAnimation: UITableView.RowAnimation = .none) { guard let tableView = baseCell?.formViewController()?.tableView ?? (section?.form?.delegate as? FormViewController)?.tableView, let indexPath = indexPath else { return } - tableView.reloadRows(at: [indexPath], with: rowAnimation) + + if (rowAnimation == .none) { + UIView.performWithoutAnimation { + tableView.reloadRows(at: [indexPath], with: rowAnimation) + } + } else { + tableView.reloadRows(at: [indexPath], with: rowAnimation) + } } public func deselect(animated: Bool = true) {