Is it possible to create a gradient that strokes along a path?
My understanding is that CAGradientLayer
or CGGradient
will provide a gradient from, say, top to bottom. Since they don't support stroking along the path, I'm stumped.
I would even be OK with stretching an image (containing the gradient) along the path. Is that possible?
In my case, I'd be stroking an arc (from CGPathAddArc). Is there a way to do this?