How does one render a gradient inside a UIBezierPath and is it possible to store this state together with the bezierPath for faster re-rendering in drawRect?
I currently render bezierPaths inside drawRect but I cannot add a gradient.
When I call this method CGContextDrawLinearGradient (ctx, gradient, gradientStartPoint, gradientEndPoint, 0);
I dont have an endPoint.
I tried using the BezierPath.currentPoint but I dont get the expected results.