Skip to content

Commit

Permalink
Merge branch 'release/1.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
malcommac committed Aug 4, 2020
2 parents a87cdd9 + 9c1e3cb commit 72c9241
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OwlKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "OwlKit"
s.version = "1.1.2"
s.version = "1.1.3"
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!.
Expand Down
4 changes: 3 additions & 1 deletion Sources/Owl/Table/TableDirector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +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) {
if indexPath.row >= tableView.numberOfRows(inSection: indexPath.section) ||
indexPath.section >= sections.count ||
indexPath.row >= sections[indexPath.section].elements.count {
return
}
let (model, adapter) = context(forItemAt: indexPath)
Expand Down

0 comments on commit 72c9241

Please sign in to comment.