LavaUI docs

protocol PrimitiveMount

Swift

protocol PrimitiveMount

Required retained-tree construction for primitives. No default.

Sources/LavaUI/View.swift:68

Methods

func mountPrimitive() -> any AnyViewNode

Create a new retained node (and its Yoga node, if any).

Sources/LavaUI/View.swift:70

func reconcilePrimitive(_ node: any AnyViewNode) -> any AnyViewNode

Update node in place when types match; otherwise remount.

Sources/LavaUI/View.swift:73