I have built a proof of concept that creates a CAShapeLayer object and I am able to set it's AccessibilityLabel correctly. However, I am unable to set an AccessibilityIdentifier (it seems this property exists for UIView objects, but not for CALayer objects?).
Does anyone know how to access it for CALayer objects - or if it is even possible?