func tableView()

in QuizDemo/QuizDemo/Controllers/SourceViewController.swift [126:135]


    func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? {
        let delete = UITableViewRowAction(style: .default, title: "Delete") { [weak self] (_, _) in
            DispatchQueue.main.async {
                self?.videoSourceEntities.remove(at: indexPath.section)
                tableView.deleteSections([indexPath.section], with: .left)
            }
            self?.saveData()
        }
        return [delete]
    }