tableView?.simulateEdit(.delete, rowAt: expectedIndexPath) seems to require the tableview and cell to be in editing mode.
When performing a swipe to delete, I did not have to explicitly enter edit mode to accomplish that. Similarly, Catalyst does not require edit to move a cell.
It would be nice if we could simulate the delete gesture without having to force the table view into edit mode.
My current workaround:
tableView?.dataSource?.tableView?(tableView!, commit: .delete, forRowAt: expectedIndexPath)
tableView?.simulateEdit(.delete, rowAt: expectedIndexPath)seems to require the tableview and cell to be in editing mode.When performing a swipe to delete, I did not have to explicitly enter edit mode to accomplish that. Similarly, Catalyst does not require edit to move a cell.
It would be nice if we could simulate the delete gesture without having to force the table view into edit mode.
My current workaround: