LineChartView in Scroll view can't zoom
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I add two pie charts and one lineChartview in a scroll view, and already set:
lineChart.pinchZoomEnabled = true
lineChart.dragEnabled = true
lineChart.scaleXEnabled = true
lineChart.scaleYEnabled = true
but can't pinch in scrollview, then implement scroll view delegate method:
func viewForZooming(in scrollView: UIScrollView) -> UIView?
but still not work, so there is a way to enable zoom in scroll view???
Contributor guide
Research direction
Start by reproducing the interaction using LineChartView inside UIScrollView with the reported pinch, drag, scale, and viewForZooming settings. Investigate how the chart and scroll view handle gestures; done means pinch zoom works reliably without breaking scrolling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100