From 0a757fcf9bfc80aa39ebdd5e1b33194a88f9dbcc Mon Sep 17 00:00:00 2001 From: Andrea Bellotto Date: Thu, 23 Jul 2020 16:42:06 +0200 Subject: [PATCH 1/2] Added check if exists row and section on didEndEditing. --- Sources/Owl/Table/TableDirector.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Owl/Table/TableDirector.swift b/Sources/Owl/Table/TableDirector.swift index 044dfa9..48d4ddd 100644 --- a/Sources/Owl/Table/TableDirector.swift +++ b/Sources/Owl/Table/TableDirector.swift @@ -678,6 +678,9 @@ extension TableDirector: UITableViewDataSource, UITableViewDelegate { public func tableView(_ tableView: UITableView, didEndEditingRowAt indexPath: IndexPath?) { guard let indexPath = indexPath else { return } + if indexPath.row >= tableView.numberOfRows(inSection: indexPath.section) { + return + } let (model, adapter) = context(forItemAt: indexPath) adapter.dispatchEvent(.didEndEdit, model: model, cell: nil, path: indexPath, params: nil) } From 7e74b8f63d590303d039e5e5579e195b03bbaf0b Mon Sep 17 00:00:00 2001 From: Daniele Margutti Date: Fri, 24 Jul 2020 11:51:44 +0200 Subject: [PATCH 2/2] Bump to 1.1.2 --- OwlKit.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OwlKit.podspec b/OwlKit.podspec index b91f898..939fc0c 100644 --- a/OwlKit.podspec +++ b/OwlKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "OwlKit" - s.version = "1.1.1" + s.version = "1.1.2" s.summary = "A declarative type-safe framework for building fast and flexible list with Tables & Collections" s.description = <<-DESC Owl offers a data-driven declarative approach for building fast & flexible list in iOS. It supports both UICollectionView & UITableView; UIStackView is on the way!.