Instance Method
applyVariantOverrides(in:for:)
Applies variant overrides of the given trait to the given encoded render node.
func applyVariantOverrides(in renderNodeData: Data, for traits: [RenderNode.Variant.Trait]) throws -> Data
Parameters
renderNodeDataThe render node on which to apply the variant override, encoded in JSON.
traitsThe traits associated with the patch to apply.
Return Value
The render node with the patch applied, encoded in JSON.