SwiftReorder icon indicating copy to clipboard operation
SwiftReorder copied to clipboard

How to disable reorder functionality in one section ?

Open VikasPrajapatiSA opened this issue 4 years ago • 2 comments

When I move cell one section to another section then it's crash. Is there any solution for this?

VikasPrajapatiSA avatar Jul 21 '20 09:07 VikasPrajapatiSA

Hi, implement func tableView(_ tableView: UITableView, canReorderRowAt indexPath: IndexPath) -> Bool and limit your sections there

Saulenco avatar Sep 09 '20 09:09 Saulenco

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.

vantien2905 avatar Jun 24 '23 04:06 vantien2905