see why "type does not conform to protocol" in Xcode (swift) see why "type does not conform to protocol" in Xcode (swift) swift swift

see why "type does not conform to protocol" in Xcode (swift)


When you get that error, click on the arrow to expand it. It will show the required function(s) that are missing.

Here is an example where I implement UITableViewDataSource but I have forgot to provide the "cellForRowAtIndexPath" function.

enter image description here