You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been playing around with SingleLineLollipop.swift and noticed this weird redrawing behavior. I set a break point on line 42 and then run the example on my device/sim ( either doesn't matter ). Every time I touch the screen and drag, the break point gets triggered and the app pauses. At first I thought, ok this makes sense, the selectedElement state var updates, and the chart needs to redraw the chartBackground. No problem. But as you can imagine this isn't ideal... for large data sets I noticed there is a delay / animation hitch when the user drags her finger across the chart. So I thought to extract the state var and the chartBackground to a separate view. But no matter how I extract them, the chart ALWAYS redraws. How can I create a view like you have in the chart background that has data about the x value the user is currently touching and have it update without the whole chart updating?
The text was updated successfully, but these errors were encountered:
I have been playing around with SingleLineLollipop.swift and noticed this weird redrawing behavior. I set a break point on line 42 and then run the example on my device/sim ( either doesn't matter ). Every time I touch the screen and drag, the break point gets triggered and the app pauses. At first I thought, ok this makes sense, the selectedElement state var updates, and the chart needs to redraw the chartBackground. No problem. But as you can imagine this isn't ideal... for large data sets I noticed there is a delay / animation hitch when the user drags her finger across the chart. So I thought to extract the state var and the chartBackground to a separate view. But no matter how I extract them, the chart ALWAYS redraws. How can I create a view like you have in the chart background that has data about the x value the user is currently touching and have it update without the whole chart updating?
The text was updated successfully, but these errors were encountered: