in Objective-C:
@interface CustomDataSource : NSObject
@end
in Swift:
class CustomDataSource
Type 'CellDatasDataSource' does not conform to protocol 'NSObjectProtocol'
You have to make your class inherit from NSObject to conform to the NSObjectProtocol. Vanilla Swift classes do not. But many parts of UIKit expect NSObjects.
class CustomDataSource : NSObject, UITableViewDataSource {
}
But this:
Type 'CellDatasDataSource' does not conform to protocol 'UITableViewDataSource'
Is expected. You will get the error until your class implements all required methods of the protocol.
So get coding :)