Instance Method
transform(renderNode:context:)
Applies the two transformations, in sequence, to a given render node.
func transform(renderNode: RenderNode, context: RenderNodeTransformationContext) -> RenderNodeTransformationComposition.RenderNodeTransformationResult
Parameters
renderNodeThe node to transform.
contextThe context in which the composed transformation transforms the node.
Return Value
The transformed node, and a possibly modified context that’s passed through both transformers.
Discussion
The composed transformation passes the output from the first transformation as the input to the second transformation.
┌─────────────────────────────┐
│ ┌────────┐ ┌────────┐ │
──┼─▶│ │────▶│ │──┼─▶ │ │ First │ │ Second │ │ ──┼─▶│ │────▶│ │──┼─▶ │ └────────┘ └────────┘ │ └─────────────────────────────┘