Xcode升级后,Char框架报错,解决方案(Type ‘Cha
2023-09-20 本文已影响0人
舟_e9ce
错误提示: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 {
}