TableKit icon indicating copy to clipboard operation
TableKit copied to clipboard

How to activate canMove, canMoveTo for sorting drag & drop rows

Open Datastore24Kirill opened this issue 4 years ago • 0 comments

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)

Datastore24Kirill avatar Oct 06 '21 16:10 Datastore24Kirill