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/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"))