I\'d like to apply a gradient on a polyline view depending on some conditions like speed.
I was able to subclass MKPolyLineRenderer
to draw with custom stroke
So the original answer is here https://stackoverflow.com/a/20159374/2606068
you can find the demo here https://github.com/wdanxna/GradientPolyline
and some improvement tips provided by @Templar is:
thanks man! :p