【IOS】Type ‘ChartDataSet‘ does not conform to protocol ‘RangeReplaceableCollection‘

问题

IOS开发Charts集成时编译报错

解决方法

在ChartDataSet的中增加replaceSubrange的实现

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

解决!

你可能感兴趣的:(IOS,ios)