Merge pull request #74 from astrokin/master

add swap rows func. usefull for table row reordering while editing
This commit is contained in:
Max Sokolov 2018-02-23 12:23:56 +03:00 committed by GitHub
commit 9fff8c861c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,10 @@ open class TableSection {
rows[index] = row
}
open func swap(from: Int, to: Int) {
rows.swapAt(from, to)
}
open func delete(rowAt index: Int) {
rows.remove(at: index)
}