diff --git a/Sources/TableDirector.swift b/Sources/TableDirector.swift index c251dc7..e9e9e9f 100644 --- a/Sources/TableDirector.swift +++ b/Sources/TableDirector.swift @@ -252,6 +252,10 @@ open class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate { return indexPath } + open func tableView(_ tableView: UITableView, didEndDisplaying cell: UITableViewCell, forRowAt indexPath: IndexPath) { + invoke(action: .didEndDisplaying, cell: cell, indexPath: indexPath) + } + // MARK: - Row editing open func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { diff --git a/Sources/TableKit.swift b/Sources/TableKit.swift index bff0ef4..6b8b11c 100644 --- a/Sources/TableKit.swift +++ b/Sources/TableKit.swift @@ -60,6 +60,7 @@ public enum TableRowActionType { case deselect case willSelect case willDisplay + case didEndDisplaying case shouldHighlight case height case canEdit diff --git a/TableKit.podspec b/TableKit.podspec index 260e2cc..c8af02f 100644 --- a/TableKit.podspec +++ b/TableKit.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |s| s.name = 'TableKit' s.module_name = 'TableKit' - s.version = '2.4.0' + s.version = '2.4.1' s.homepage = 'https://github.com/maxsokolov/TableKit' s.summary = 'Type-safe declarative table views with Swift.' diff --git a/Tests/TableKitTests.swift b/Tests/TableKitTests.swift index 5c1725f..552897a 100644 --- a/Tests/TableKitTests.swift +++ b/Tests/TableKitTests.swift @@ -215,7 +215,6 @@ class TabletTests: XCTestCase { XCTAssertTrue(cell1?.textLabel?.text == "title2") } - func testReplaceSectionOnWrongIndex() { let row1 = TableRow(item: TestData(title: "title1"))