Reposting for better tags. Please see the details for the original post: https://developer.apple.com/forums/thread/688268
I tried to pair the CATransaction.begin() and CATransaction.commit() but it does not work. Maybe I am doing it wrong.
Reposting for better tags. Please see the details for the original post: https://developer.apple.com/forums/thread/688268
I tried to pair the CATransaction.begin() and CATransaction.commit() but it does not work. Maybe I am doing it wrong.
Do you want to change within the same BezierPath ? I thought it was not possible: https://stackoverflow.com/questions/33108315/how-to-create-two-strokes-of-different-color-using-one-uibezierpath?rq=1 Or with multiple paths : https://stackoverflow.com/questions/6431005/how-to-draw-multiple-uibezierpath-with-different-colors-in-a-uiview
A CAShapeLayer
displays a single CGPathRef
with all of the properties that are assigned to it (such as the fillColor
). If you want multiple colors, you will need to use multiple CAShapeLayer
s.