swift navigation controller disable swipe code example
Example: disable trailing swipe action swift
// instead of:
return UISwipeActionsConfiguration(actions: [deleteAction])
// do something like this:
let configuration = UISwipeActionsConfiguration(actions: [deleteAction])
configuration.performsFirstActionWithFullSwipe = false
return configuration