iOS Charts Unavailable instance method ‘replaceSubrange

Lee young-jun
1 min readNov 1, 2022

--

Problem

…/src/gersanghelper/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift:530:1: error build: Unavailable instance method ‘replaceSubrange(_:with:)’ was used to satisfy a requirement of protocol ‘RangeReplaceableCollection’

Reason

XCode 14
Swift 5.7.

Solution

pod ‘Charts’, ‘4.1.0’

Migration from Charts 3.0

Podfile

platform :ios, ‘13.0’

IAxisValueFormatter

AxisValueFormatter

BarChartDataSet.init(values: , label: );

BarChartDataSet.init(entries: , label: );

.chartDescription?.text

.chartDescription.text

.values

.entries

References

--

--

No responses yet