XCode14 Charts Type ‘ChartDataSet‘ does not conform to protocol ‘RangeReplaceableCollection‘

ChartDataSet.swift 报错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 {
    }

猜你喜欢

转载自blog.csdn.net/zxc8890304/article/details/129300872
今日推荐