Disable Trailing Swipe Action Swift

[Solved] Disable Trailing Swipe Action Swift | Swift - Code Explorer | yomemimo.com
Question : disable swipe to delete swift

Answered by : mobile-star

override func tableView(tableView: UITableView, editingStyleForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCellEditingStyle { if tableView.editing { return UITableViewCellEditingStyle.Delete } return UITableViewCellEditingStyle.None
}

Source : | Last Update : Sat, 04 Apr 20

Question : disable trailing swipe action swift

Answered by : mobile-star

// instead of:
return UISwipeActionsConfiguration(actions: [deleteAction])
// do something like this:
let configuration = UISwipeActionsConfiguration(actions: [deleteAction])
configuration.performsFirstActionWithFullSwipe = false
return configuration

Source : | Last Update : Sat, 04 Apr 20

Answers related to disable trailing swipe action swift

Code Explorer Popular Question For Swift