I have made a CAShapeLayer
with few points by setting its stroke color to red . Then i have filled the color with a pattern of an UIImage
. I want to rotate that CAShapeLayer
along with its filled pattern using UIRotationGestureRecognizer
.
I have used CATransform3DRotate but it is not working properly.
CATransform3D transform = CATransform3DIdentity;
transform = CATransform3DRotate(transform, recognizer.rotation, 0.0, 0.0, 1.0);
shapeLayer.transform = transform;
Thanks in advance