Distort the child nodes of an effect node by applying a warping effect.
If you want to warp a node that doesn't conform to
SKWarpable, you can add it as a child to an effect node that is warped. As an implementor of
SKWarpable, effect node inherits the
SKWarp property that you assign one of the
SKWarp types to then warp the effect node's children.
Warp Text By Using an Effect Node
SKLabel is one such class that doesn't conform to
SKWarpable. The following code shows how you can warp a label node by adding it as a child to a
SKEffect and assign the effect node a
SKWarp that pulls out the corners horizontally and stretches the center vertically.
The following image shows the warped label.