美文网首页
Xcode升级后,Char框架报错,解决方案(Type ‘Cha

Xcode升级后,Char框架报错,解决方案(Type ‘Cha

作者: 舟_e9ce | 来源:发表于2023-09-20 09:27 被阅读0次

错误提示:Type ‘ChartDataSet’ does not conform to protocol ‘RangeReplaceableCollection’

解决方案如下:

extension ChartDataSet: RangeReplaceableCollection方法添加代码

 public func replaceSubrange<C>(_ subrange: Swift.Range<Int>, with newElements: C) where C :
 Collection, ChartDataEntry == C.Element {
    }

相关文章

网友评论

      本文标题:Xcode升级后,Char框架报错,解决方案(Type ‘Cha

      本文链接:https://www.haomeiwen.com/subject/aiiovdtx.html