CAReplicatorLayer with CAShapeLayer
I started using CAReplicatorLayer
to get replications of a CAShapeLayer
.
The instanceTransform
property of the layer which I use to move the replications does work fine but instanceAlphaOffset
and the other color offsets (eg instanceBlueOffset
) have no effect. What can I do to make it work?
Can I subclass CAReplicatorLayer
to define custom properties that change on the replications? I'd love to change the fill and strokeColor
of the CAShapeLayer
with every replications. Or is this somehow else (without subclassing) possible?