didEndDisplay support
This commit is contained in:
parent
c9bd52797d
commit
ce2874c58d
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ public enum TableRowActionType {
|
|||
case deselect
|
||||
case willSelect
|
||||
case willDisplay
|
||||
case didEndDisplaying
|
||||
case shouldHighlight
|
||||
case height
|
||||
case canEdit
|
||||
|
|
|
|||
|
|
@ -215,7 +215,6 @@ class TabletTests: XCTestCase {
|
|||
XCTAssertTrue(cell1?.textLabel?.text == "title2")
|
||||
}
|
||||
|
||||
|
||||
func testReplaceSectionOnWrongIndex() {
|
||||
|
||||
let row1 = TableRow<TestTableViewCell>(item: TestData(title: "title1"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue