swiftdelegatesxlpagertabstrip

How to fix "does not conform to protocol" when in it does


I'm trying to implement git project XLPagerTabStrip.

According to the project, every controller has to:

Every view controller provided by PagerTabStripDataSource's viewControllers(for:) method must conform to InfoProvider

But the following code throws: does not conform to protocol

extension UserProfileSubController: IndicatorInfoProvider {

    func indicatorInfo(for pagerTabStripController: PagerTabStripViewController) -> IndicatorInfo {

        return IndicatorInfo(title: "UserProfileSubController")
    }
}

enter image description here

enter image description here

enter image description here

If I want to auto fix the issue it re-implements the same protocol function and then throws invalid redeclaration.

enter image description here

How do you fix does not conform to protocol issue if your controller in fact does conform to it? What am I missing? Help is very appreciated.

PS: I have cleaned the project, the build folder, removed derived data, restarted and performed pod updated as well as reinstall of pod.


Solution

  • In the end it was copy/pasting/dependency issue. Starting over and removing the pod and dependency code and re-installing solved the issue at the end.