I am building a statistics section of my app and for that reason i use the wonderful ios-charts library. After i finished all my work, i wanted to add a feature where when the user doubleTaps on one bar of the chart, then it switches to another chart, containing that data visualized in another way.
But the problem is that the library uses the doubleTap gesture for zoom only. So i cannot add my own, because it would conflict, and i cannot change the handler, because the function is private. (and i really don't want to change the source code)
And after researching on their GitHub i found, that you can use your own gesture if you subclass the chartView.
My question is, how should i solve this problem? I tried the subclassing, but couldn't get the variables and funcs i needed, i tried overriding, but that gave me an error message stating that this variable/function does not exist in the superclass.
I would appreciate some help with code examples so that i can learn how to do it the right way.