Gradient Color to CGPath
I am drawing shape using CGPath and after drawing it,adding to
CAShapeLayer.I am getting frame using CGPathGetPathBoundingBox()(this
frame will set to CAShapeLayer) but it is in rectangle form while my path
is in different form.So when i am trying to give gradient colour ,it is
showing too much gradient in some portion of path and in some portion you
cant see anything.basically gradient color is setting on frame of
CAShapeLayer.So is there any way to set gradient color to CGPath?Please
help me.Thanking you.Hint will also be appreciated.
No comments:
Post a Comment