Closed carson-katri closed 2 years ago
Is visitPrimitiveChildren
supposed to be a replacement for Deferred
infrastructure of the stack reconciler, or is this a different thing with a different use case?
Yes, exactly. Its the equivalent to primitiveBody(for:)
in a StackReconciler
renderer, except we provide a view visitor function instead of an AnyView
so the Views keep their types.
snapshot tests are failing though
This adds support for
_ShapeView
and related styling, as well as the variousbackground
modifiers to the Fiber renderers:Overriding View Bodies
It also introduces the capability to override the body of a View in a specific Fiber renderer using the
visitPrimitiveChildren
protocol requirement onFiberRenderer
:In this function, we can optionally return a new function that will override the default
_visitChildren
function on theView
.