TableKit
TableKit copied to clipboard
How to activate canMove, canMoveTo for sorting drag & drop rows
Please tell me how to activate the ability to sort cells or sections in a table using TableKit
Do not work:
let row = TableRow<BudgetSettingsTableViewCell>(item: item)
let canMove = TableRowAction<BudgetSettingsTableViewCell>(.canMove) { options in
return true
}
let caneMoveTo = TableRowAction<BudgetSettingsTableViewCell>(.canMoveTo) { [weak self] (options) in
print("MOVE")
}
row.on(canMove)
row.on(caneMoveTo)