Merge pull request #74 from astrokin/master
add swap rows func. usefull for table row reordering while editing
This commit is contained in:
commit
9fff8c861c
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue