I have a two UIViewControllers A and B and I would like to have a single extension which implements a UITableViewDataSource which should be limited to above two A and B controllers. Is it possible?
I get a compiler error message for the code below:
Error message: Trailing 'where' clause for extension of non-generic type 'UIViewController'
class A: UIViewController {}
class B: UIViewController {}
extension UIViewController: UITableViewDataSource where Self: A, Self: B { }