Figured the shit out:

replicatorX layer has initial position (0.0,0.0). This i s why we set the position to (320.0, 230.0)
this means that the replicatorX layer is shited halfway to the right.
Now, since the sublayers are being added to the replicatorX layer, we need to do the geometry in the replicatorX coordinated (translated)
That will make sense since (-140.0, 30.0) in replicatorX coordinate will actually put the sublayer (its instance) at 'position' (20.0, 30.0)
It is best to draw that on paper to visualize it better unless you can make a visual map.

So the bottom line is: when adding a sublayer, consider the bounds of the superlayer and things will be clearer.

#geometry #coreanimation # careplicatorlayer