I am using Charts to create custom graphs in an application. The one thing I am having trouble with is detecting touch events on the chart marker that is presented for the curre
As per your requirement Charts library already have that method in its delegate.
Please check below code :
lineChartView.delegate = self
public func chartValueSelected(_ chartView: ChartViewBase, entry: ChartDataEntry, highlight: Highlight) { }
Here you can write your code while user click on chart.
Hope this info will helps!