Charts
Charts copied to clipboard
ChartViewDelegate & IChartValueFormatter
When updating to Chart 4.1.0 Xcode can't find protocol definition for; ChartViewDelegate IChartValueFormatter
This is in old OBJ-C code
Charts Environment
Charts version/Branch/Commit Number: **Xcode version: 14.0 ** **Swift version: 5.7 ** **Platform(s) running Charts: iOS ** **macOS version running Xcode: 12.5.1 **
Same to me Cannot find type (IAxisValueFormatter, IValueFormatter) in scope.
Same to me
Cannot find type (IAxisValueFormatter, IValueFormatter) in scope.
Exactly same to me. Cannot find type (IAxisValueFormatter, IValueFormatter) in scope.
- I guess if you want to solve the problem it's about removing #import bridging header of files contained in you're pods libraries..and there's another solution ( Go to build settings and build after setting Precompile Bridging Header YES -> NO. You can show no errors. But codes defined by objec aren't recognized. It is not able to jump to definition.)
Hey guys, I was confused too before I noticed that they have been renamed to (AxisValueFormatter, ValueFormatter) https://github.com/danielgindi/Charts/issues/4775#issuecomment-1026495171
@nailaobaba you are right, it works by replacing the name. Thank you.
@nailaobaba Any update to the ChartViewDelegate name?
@JorgenAndreasson Sorry, no idea about that
I found one solution please follow:
- pod 'Charts', '3.6.0'
- Find below code and add code after that
extension ChartDataSet: RangeReplaceableCollection {
// add this method
public func replaceSubrange<C>(_ subrange: Swift.Range<Index>, with newElements: C) where C : Collection, Element == C.Element {
entries.replaceSubrange(subrange, with: newElements)
notifyDataSetChanged()
}
This solution works for me
@JorgenAndreasson if that solves your issue, please close the ticket. Thanks.
Seems resolved closing