say i have two calayers and when one translates, scales, and rotates i want the other to do the same relative to the first. much like if you add the second layer to the first as a sub layer
however i want the second layer to appear behind the first layer and as far as i can tell you can't have a sublayer draw behind it's parent layer.
so i thought that maybe i could just move the anchor position of the second layer move to the same point as the first layer before transforms are applied.
the problem is that anchor positions are in unit space. what's an efficient way to get the anchor point of the second layer to me at the same point as the anchor point of the first layer?
however i want the second layer to appear behind the first layer and as far as i can tell you can't have a sublayer draw behind it's parent layer.
so i thought that maybe i could just move the anchor position of the second layer move to the same point as the first layer before transforms are applied.
the problem is that anchor positions are in unit space. what's an efficient way to get the anchor point of the second layer to me at the same point as the anchor point of the first layer?