I want to add this shadow effect below the row while sliding the row to delete.
I am showing the delete button here in my controller
func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? {
let cell = tableView.dequeueReusableCell(forIndexPath: indexPath) as NewNotificationTableViewCell
let delete = UITableViewRowAction(style: .normal, title: "Delete") { [self] action, index in
sectionArray[indexPath.section].items.remove(at: indexPath.row)
tableView.deleteRows(at: [indexPath], with: UITableView.RowAnimation.automatic)
if sectionArray[indexPath.section].items.isEmpty {
sectionArray.remove(at: indexPath.section)
cell.addShadow()
tableView.deleteSections(.init(integer: indexPath.section), with: .automatic)
}
}
delete.backgroundColor = UIColor.red
return [delete]
}
}

Using SwipeKit solved my shadow issue with below code.
I also changed my cell type to
and delegated self