didEndDisplay support

This commit is contained in:
Mikhail Motylev 2017-06-07 17:36:02 +03:00
parent c9bd52797d
commit ce2874c58d
3 changed files with 5 additions and 1 deletions

View File

@ -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 {

View File

@ -60,6 +60,7 @@ public enum TableRowActionType {
case deselect
case willSelect
case willDisplay
case didEndDisplaying
case shouldHighlight
case height
case canEdit

View File

@ -215,7 +215,6 @@ class TabletTests: XCTestCase {
XCTAssertTrue(cell1?.textLabel?.text == "title2")
}
func testReplaceSectionOnWrongIndex() {
let row1 = TableRow<TestTableViewCell>(item: TestData(title: "title1"))