我正在尝试实施 git 项目XLPagerTabStrip。
根据该项目,每个控制器必须:
PagerTabStripDataSource 的 viewControllers(for:) 方法提供的每个视图控制器都必须符合InfoProvider
但是下面的代码抛出:does not conform to protocol
extension UserProfileSubController: IndicatorInfoProvider {
func indicatorInfo(for pagerTabStripController: PagerTabStripViewController) -> IndicatorInfo {
return IndicatorInfo(title: "UserProfileSubController")
}
}
如果我想自动修复问题,它会重新实现相同的协议功能,然后抛出无效的重新声明。
does not conform to protocol
如果您的控制器确实符合问题,您如何解决问题?我错过了什么?非常感谢帮助。
PS:我已经清理了项目,构建文件夹,删除了派生数据,重新启动并执行了 pod 更新以及重新安装 pod。