I have a class that is using UITableView, for example:
class tableViewController {
tableView.dataSource = self
tableView.delegate = self
I noticed that one of the functions is in the wrong protocol extension:
extension tableViewController: UITableViewDataSource {
func tableView(_ tableView: UITableView, titleForDeleteConfirmationButtonForRowAt indexPath: IndexPath) -> String? {
But it should be in ->
extension tableViewController: UITableViewDelegate {
This is in some code that I've had for quite sometime (even in a released app, but it has never misbehaved or produced errors.
Is this expected behavior due to some underlying mechanism.