ChartViewDelegate Function chartValueSelected(_ chartView: ChartViewBase, entry: ChartDataEntry, highlight: Highlight) is not being invoked for UILongPressGestureRecognizer
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
## What did you do?
While doing UIPanGestureRecognizer or UITapGestureRecognizer the chartValueSelected is invoked.
In case i am doing UILongPressGestureRecognizer nothing happens.
## What did you expect to happen?
The chartValueSelected method suppose to be invoked.
## What happened instead?
Nothing invokes
## Charts Environment
**Charts version/Branch/Commit Number: 4.1.0**
**Xcode version: 14.2**
**Swift version: 5.7.2**
**Platform(s) running Charts: iOS device/simulators**
**macOS version running Xcode: 13.2.1**
Contributor guide
Research direction
Start by reproducing the issue on iOS with Charts 4.1.0, comparing UILongPressGestureRecognizer with UIPanGestureRecognizer and UITapGestureRecognizer. Trace the ChartViewDelegate chartValueSelected callback through the gesture handling entry points and verify that a long press invokes it with the expected entry and highlight.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100