Merge pull request #64 from motylevm/master

didEndDisplaying cell action support
This commit is contained in:
Max Sokolov 2017-06-07 17:46:38 +03:00 committed by GitHub
commit bd8ac5a28b
4 changed files with 6 additions and 2 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

@ -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.'

View File

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