protocol AnyViewNode
Swift
protocol AnyViewNode : AnyObject
Not documented.
Sources/LavaUI/LayoutNode.swift:50
Properties
var agentId: String? { get set }
Author-assigned agent id (.agentId("…")). Stable across process runs.
Prefer this over process-local id when scripting the UI.
Sources/LavaUI/LayoutNode.swift:61
var childNodes: [any AnyViewNode] { get }
Direct retained children (not flattened).
Sources/LavaUI/LayoutNode.swift:56
var id: NodeID { get }
Not documented.
Sources/LavaUI/LayoutNode.swift:51
var label: String { get }
Not documented.
Sources/LavaUI/LayoutNode.swift:52
var needsBodyRecompute: Bool { get set }
Not documented.
Sources/LavaUI/LayoutNode.swift:57
var structuralKey: String? { get set }
Path segment override (e.g. ForEach element key). Used when building
structural sid fallbacks for untagged nodes.
Sources/LavaUI/LayoutNode.swift:65
var yoga: YGNodeRef? { get }
Non-nil for layout boxes (stacks, text, spacer…). Nil for fragments.
Sources/LavaUI/LayoutNode.swift:54
Methods
func collectFrames(originX: Float, originY: Float, into: inout [LayoutFrame])
Not documented.
Sources/LavaUI/LayoutNode.swift:67