Skip to content

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

Description

@Datastore24Kirill

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions