SwiftReorder
SwiftReorder copied to clipboard
How to disable reorder functionality in one section ?
When I move cell one section to another section then it's crash. Is there any solution for this?
Hi,
implement func tableView(_ tableView: UITableView, canReorderRowAt indexPath: IndexPath) -> Bool
and limit your sections there
Hi, implement
func tableView(_ tableView: UITableView, canReorderRowAt indexPath: IndexPath) -> Bool
and limit your sections there
After disable section you need implement: func tableView(_ tableView: UITableView, targetIndexPathForReorderFromRowAt sourceIndexPath: IndexPath, to proposedDestinationIndexPath: IndexPath) -> IndexPath
to make sure proposedDestinationIndexPath different with disable section.