I\'ve been trying to apply a mask to a SKShapeNode using SKCropNode, and so far without success. Thinking that it\'s a SpriteKit bug - Here is the code snippet:
I have the similar task in my app. I need to draw multiple irregular shapes based on user input and then use them as crop node's masks.
The solution that works for me is to:
create a SKShapeNode with the required path
retrieve a SKTexture from it using SKView method textureFromNode:crop:
create a SKSpriteNode from that texture.
use SKSprite node as a mask.