I am trying to figure out a way to calculate the spline of data points in a 2 axis coordinate system to use as a bezierPath (Swift). BezierParth needs to have the correct shape and coordinates.
my data look like this and I am after a path like the red line...
Is that even possible?
Thank you in advance
In sequence:
There is a really nice article on Medium.com at: https://medium.com/@ramshandilya/draw-smooth-curves-through-a-set-of-points-in-ios-34f6d73c8f9
It goes at length on how to render your UIBezierPath given a set of data points. Luckily, you don't have to understand all that magic, since the writer also made available his source code: https://github.com/Ramshandilya/Bezier
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With