leadingSwipeActionsConfigurationForRowAt crashes iOS swift
Problem:
func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurati
}
While using the above funtion left to right swipe while in editing when
try to swipe another time app crashed.
Solution:
While your tableView is in editing if you tried one more time for
swipe it will conflict with the previous number of rows.So it will
be crash.
Try to add the line with
if !tableView.isEditing {
}
then only proceed with your editing otherwise ignore it..The problem
will be solved
Comments
Post a Comment