美文网首页SwiftUI
xcode升级到14beta版本,Char框架报错,解决方案

xcode升级到14beta版本,Char框架报错,解决方案

作者: 我是卖报的小行家 | 来源:发表于2022-08-28 17:41 被阅读0次

    Unavailable instance method 'replaceSubrange(_:with:)' was used to satisfy a requirement of protocol 'RangeReplaceableCollection'

    Type 'ChartDataSet' does not conform to protocol 'RangeReplaceableCollection'

    解决方案:
    // MARK: RangeReplaceableCollection
    extension ChartDataSet: RangeReplaceableCollection 方法里补充

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

    相关文章

      网友评论

        本文标题:xcode升级到14beta版本,Char框架报错,解决方案

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