func tableView()

in CustomUI/CustomUI/Controllers/SourceSelectViewController.swift [120:129]


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